You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge?
Given the expression CASE WHEN predicate THEN expr ELSE null END (as seen in some TPC-DS queries) we could do better than using our generic CaseExpr. In this specific case we can evaluate expr and create a new array using the existing data buffer but just replace the null mask with the results of evaluating the predicate.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
I am implementing this in Comet in apache/datafusion-comet#672 and plan on upstreaming to DataFusion soon. The optimization is resulting in a > 10x speedup for my test case.
Is your feature request related to a problem or challenge?
Given the expression
CASE WHEN predicate THEN expr ELSE null END
(as seen in some TPC-DS queries) we could do better than using our genericCaseExpr
. In this specific case we can evaluateexpr
and create a new array using the existing data buffer but just replace the null mask with the results of evaluating thepredicate
.Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: