Github user xuchuanyin commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2683#discussion_r216966619
--- Diff:
store/sdk/src/main/java/org/apache/carbondata/sdk/file/TestUtil.java ---
@@ -136,33 +136,40 @@ public static void writeFilesAndVerify(int rows,
Schema schema, String path, Str
CarbonWriter writer = builder.buildWriterForCSVInput(schema,
configuration);
for (int i = 0; i < rows; i++) {
- writer.write(new String[]{"robot" + (i % 10), String.valueOf(i),
String.valueOf((double) i / 2)});
+ writer.write(new String[]{
+ "robot" + (i % 10), String.valueOf(i % 3000000),
String.valueOf((double) i / 2)});
}
writer.close();
- } catch (IOException e) {
+ } catch (Exception e) {
e.printStackTrace();
--- End diff --
It's not recommended to print the stack trace like this.
---