findepi opened a new pull request, #15390:
URL: https://github.com/apache/datafusion/pull/15390

   ## Which issue does this PR close?
   
   
   
   - Closes https://github.com/apache/datafusion/issues/15384
   
   ## Rationale for this change
   
   Commit 
https://github.com/apache/datafusion/commit/0f4b8b136ceb9132fd6b6595bd6a09a09707f5d9
 (https://github.com/apache/datafusion/pull/13953) introduced a new
   optimized evaluation mode for CASE expression with exactly one WHEN-THEN
   clause and ELSE clause being present. Apparently, the new mode did not
   take into account expensive or fallible expressions, as it
   unconditionally evaluated both branches. This is definitely incorrect
   for fallible expressions. For these, fallback to the original execution
   mode.
   
   ## What changes are included in this PR?
   
   fix so that CASE is lazy again
   
   ## Are these changes tested?
   
   slt
   
   ## Are there any user-facing changes?
   
   yes
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to