Skip to content

Commit 6919a5c

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

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/query/stream_schema_provider.rs

-1
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)