[HUDI-470] Fix NPE when print result via hudi-cli (#1138)
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user