Skip to content

Commit 6b73e11

Browse files
committed
fix(array): avoid errors when comparison kernels decline arithmetic
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
1 parent 77376c9 commit 6b73e11

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • vortex-array/src/scalar_fn/fns/binary/compare

‎vortex-array/src/scalar_fn/fns/binary/compare/mod.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ where
8787
child_idx: usize,
8888
ctx: &mut ExecutionCtx,
8989
) -> VortexResult<Option<ArrayRef>> {
90-
// Only handle comparison operators
90+
// Unsupported operators are normal kernel misses, so avoid constructing an error and
91+
// capturing its backtrace before falling back to another kernel.
92+
if !parent.options.is_comparison() {
93+
return Ok(None);
94+
}
95+
9196
let Ok(cmp_op) = CompareOperator::try_from(*parent.options) else {
9297
return Ok(None);
9398
};

0 commit comments

Comments
 (0)