Skip to content

Commit be4aa2b

Browse files
fix: file pruning with notEq operator
current: all files get pruned in query for notEq operator because of incorrect condition match fix: with notEq, we cannot determine if the file can be pruned hence, removed the check
1 parent 160dec4 commit be4aa2b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/query/stream_schema_provider.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,6 @@ fn satisfy_constraints(value: CastRes, op: Operator, stats: &TypedStatistics) ->
979979
fn matches<T: std::cmp::PartialOrd>(value: T, min: T, max: T, op: Operator) -> Option<bool> {
980980
let val = match op {
981981
Operator::Eq | Operator::IsNotDistinctFrom => value >= min && value <= max,
982-
Operator::NotEq => value < min && value > max,
983982
Operator::Lt => value > min,
984983
Operator::LtEq => value >= min,
985984
Operator::Gt => value < max,

0 commit comments

Comments
 (0)