Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: yanz <[email protected]>
  • Loading branch information
dirtysalt committed Oct 10, 2024
1 parent a033954 commit 51701db
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,15 @@ protected String getNodeExplainString(String prefix, TExplainLevel detailLevel)
deltaLakeTable.getCatalogName(), deltaLakeTable.getDbName(), deltaLakeTable.getTableName());

if (selectedPartitionCount == -1) {
// we have to consume all scan ranges to know how many partition been selected.
while (scanRangeSource.hasMoreOutput()) {
scanRangeSource.getOutputs(1000);
if (scanRangeSource != null) {
// we have to consume all scan ranges to know how many partition been selected.
while (scanRangeSource.hasMoreOutput()) {
scanRangeSource.getOutputs(1000);
}
selectedPartitionCount = scanRangeSource.selectedPartitionCount();
} else {
selectedPartitionCount = 0;
}
selectedPartitionCount = scanRangeSource.selectedPartitionCount();
}

output.append(prefix).append(
Expand Down

0 comments on commit 51701db

Please sign in to comment.