Skip to content
Merged
Show file tree
Hide file tree
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 @@ -512,6 +512,10 @@ private Statistics estimateColumnLessThanColumn(Expression leftExpr, ColumnStati
context.addKeyIfSlot(rightExpr);
return statistics;
}
if (leftRange.isInfinite() || rightRange.isInfinite()) {
return context.statistics.withSel(DEFAULT_INEQUALITY_COEFFICIENT);
}

double leftOverlapPercent = leftRange.overlapPercentWith(rightRange);
// Left always greater than right
if (leftOverlapPercent == 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,8 @@ public double getDistinctValues() {
return distinctValues;
}

@Override
public String toString() {
return "(" + lowExpr + "," + highExpr + ")";
}
}