1
0

[HUDI-470] Fix NPE when print result via hudi-cli (#1138)

This commit is contained in:
lamber-ken
2019-12-26 15:40:38 +08:00
committed by vinoyang
parent def18a5086
commit 842eabb27f
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ public class HoodieLogFileCommand implements CommandMarker {
}
}
}
String[][] rows = new String[allRecords.size() + 1][];
String[][] rows = new String[allRecords.size()][];
int i = 0;
for (IndexedRecord record : allRecords) {
String[] data = new String[1];

View File

@@ -77,7 +77,7 @@ public class RepairsCommand implements CommandMarker {
List<String> partitionPaths =
FSUtils.getAllPartitionFoldersThreeLevelsDown(HoodieCLI.fs, client.getBasePath());
Path basePath = new Path(client.getBasePath());
String[][] rows = new String[partitionPaths.size() + 1][];
String[][] rows = new String[partitionPaths.size()][];
int ind = 0;
for (String partition : partitionPaths) {