Skip to content

Commit 32d2618

Browse files
authored
Avoid scatter operation in ExpressionOrExpression case evaluation method (#18444)
## Which issue does this PR close? - Part of #18075. ## Rationale for this change The `ExpressionOrExpression` case evaluation method currently uses `zip` to combine the `then` and `else` results for a batch. This requires a scatter operation to ensure the partial results are correctly lined up for the `zip` algorithm. By using a custom `merge` algorithm, this scatter step can be avoided. ## What changes are included in this PR? - Introduce a zip variant that does not require prealigning truthy and falsy result values with the mask array ## Are these changes tested? Covered by existing case tests ## Are there any user-facing changes? No
1 parent 6852d50 commit 32d2618

File tree

1 file changed

+191
-68
lines changed
  • datafusion/physical-expr/src/expressions

1 file changed

+191
-68
lines changed

0 commit comments

Comments
 (0)