Skip to content

Commit 0897fbf

Browse files
committed
fix: compare bound conjuncts without unbinding
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent bb407e4 commit 0897fbf

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎vortex-layout/src/scan/filter.rs‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,12 @@ mod tests {
173173
let filter = FilterExpr::new(bound);
174174
let conjuncts = filter.conjuncts();
175175

176-
assert_eq!(
177-
conjuncts
178-
.iter()
179-
.map(|expr| expr.unbind())
180-
.collect::<Vec<_>>(),
181-
vec![root(), not(root()), lit(true)]
182-
);
176+
let expected = vec![
177+
root().bind(&dtype)?,
178+
not(root()).bind(&dtype)?,
179+
lit(true).bind(&dtype)?,
180+
];
181+
assert_eq!(conjuncts, expected.as_slice());
183182
assert_eq!(
184183
conjuncts
185184
.iter()

0 commit comments

Comments
 (0)