Skip to content

Commit 7e532cf

Browse files
committed
perf[ext]: pushdown filter + constant
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 2984ede commit 7e532cf

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ impl ArrayParentReduceRule<DateTimePartsVTable> for DTPComparisonPushDownRule {
102102
// Only handle comparison operations (Binary comparisons or Between)
103103
if parent
104104
.scalar_fn()
105-
.as_opt::<Binary>().is_none_or(|c| c.maybe_cmp_operator().is_none())
105+
.as_opt::<Binary>()
106+
.is_none_or(|c| c.maybe_cmp_operator().is_none())
106107
&& !parent.scalar_fn().is::<Between>()
107108
{
108109
return Ok(None);

0 commit comments

Comments
 (0)