Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,17 @@ private class MetricsEvalVisitor extends BoundExpressionVisitor<Boolean> {
private Map<Integer, ByteBuffer> upperBounds = null;

private boolean eval(DataFile file) {
if (file.recordCount() <= 0) {
if (file.recordCount() == 0) {
return ROWS_CANNOT_MATCH;
}

if (file.recordCount() < 0) {
// we haven't implemented parsing record count from avro file and thus set record count -1
// when importing avro tables to iceberg tables. This should be updated once we implemented
// and set correct record count.
return ROWS_MIGHT_MATCH;
}

this.valueCounts = file.valueCounts();
this.nullCounts = file.nullValueCounts();
this.lowerBounds = file.lowerBounds();
Expand Down