You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ap...@apache.org on 2021/01/05 01:33:19 UTC
[incubator-pinot] branch data-gen-csv-multifile-fix-20210104
created (now 4a1be6b)
This is an automated email from the ASF dual-hosted git repository.
apucher pushed a change to branch data-gen-csv-multifile-fix-20210104
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.
at 4a1be6b use unique output file names in csv mode
This branch includes the following new commits:
new 4a1be6b use unique output file names in csv mode
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[incubator-pinot] 01/01: use unique output file names in csv mode
Posted by ap...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
apucher pushed a commit to branch data-gen-csv-multifile-fix-20210104
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
commit 4a1be6b8f07b51e038e30f3fc1ba32ca7ea7d819
Author: Alexander Pucher <al...@alexpucher.com>
AuthorDate: Mon Jan 4 17:32:05 2021 -0800
use unique output file names in csv mode
---
.../main/java/org/apache/pinot/tools/data/generator/DataGenerator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pinot-tools/src/main/java/org/apache/pinot/tools/data/generator/DataGenerator.java b/pinot-tools/src/main/java/org/apache/pinot/tools/data/generator/DataGenerator.java
index 2cdc1cc..bd7a489 100644
--- a/pinot-tools/src/main/java/org/apache/pinot/tools/data/generator/DataGenerator.java
+++ b/pinot-tools/src/main/java/org/apache/pinot/tools/data/generator/DataGenerator.java
@@ -110,7 +110,7 @@ public class DataGenerator {
throws IOException {
final int numPerFiles = (int) (totalDocs / numFiles);
for (int i = 0; i < numFiles; i++) {
- try (FileWriter writer = new FileWriter(outDir + "/output.csv")) {
+ try (FileWriter writer = new FileWriter(String.format("%s/output_%d.csv", outDir, i))) {
writer.append(StringUtils.join(genSpec.getColumns(), ",")).append('\n');
for (int j = 0; j < numPerFiles; j++) {
Object[] values = new Object[genSpec.getColumns().size()];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org