rluvaton commented on PR #18183:
URL: https://github.com/apache/datafusion/pull/18183#issuecomment-3615624760

   > Looking at the benchmark results, a nice extension/followup to this work 
might be to pattern match
   > 
   > ```
   > CASE
   >     WHEN <expr> == <literal> THEN <literal>
   >     WHEN <expr> == <literal> THEN <literal>
   >     ....
   >     WHEN <expr> == <literal> THEN <literal>
   >     ELSE <literal>
   > END
   > ```
   > 
   > and transform it to `CASE <expr> WHEN <literal> THEN <literal> ...` so 
that the two become identical
   
   I already have impl for that.
   
   Note that you meed to make sure the `when` expr is deterministic to avoid 
changing behavior.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to