Skip to content

Commit 10d5b10

Browse files
committed
Only reduce IN predicate if value is provided
1 parent 3b77714 commit 10d5b10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/expr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ impl Expr {
451451
Ok(Expr::Operation { op, args })
452452
}
453453
} else if op == "in" {
454+
let Some(_) = j else {
455+
return Ok(Expr::Operation { op, args });
456+
};
454457
let l: String = left.to_text()?;
455458
let r: HashSet<String> = right.try_into()?;
456459
let isin: bool = r.contains(&l);

0 commit comments

Comments
 (0)