Skip to content

Commit 2984ede

Browse files
committed
u
Signed-off-by: Joe Isaacs <[email protected]>
1 parent e97193f commit 2984ede

File tree

1 file changed

+2
-3
lines changed
  • encodings/datetime-parts/src/compute

1 file changed

+2
-3
lines changed

encodings/datetime-parts/src/compute/rules.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ impl ArrayParentReduceRule<DateTimePartsVTable> for DTPComparisonPushDownRule {
100100
child_idx: usize,
101101
) -> VortexResult<Option<ArrayRef>> {
102102
// Only handle comparison operations (Binary comparisons or Between)
103-
if !parent
103+
if parent
104104
.scalar_fn()
105-
.as_opt::<Binary>()
106-
.is_some_and(|c| c.maybe_cmp_operator().is_some())
105+
.as_opt::<Binary>().is_none_or(|c| c.maybe_cmp_operator().is_none())
107106
&& !parent.scalar_fn().is::<Between>()
108107
{
109108
return Ok(None);

0 commit comments

Comments
 (0)