coderfender opened a new issue, #2233:
URL: https://github.com/apache/datafusion-comet/issues/2233

   ### Describe the bug
   
   Spark's coalesce operation performs lazy evaluation  from left to right and 
returns the first non null value . In  case of comet, the expressions are 
evaluated in parallel and throw an error in case one of them fails due to an 
exception (Example : Divide by Zero , Arithmetic Overflow) .
   
   ### Steps to reproduce
   
    A simple `select coalesce(100, 1/0) from tbl` should be able to reproduce 
the error
   
   ### Expected behavior
   
   Match Spark's behavior i.e lazy evaluation 
   
   ### Additional context
   
   Idea is to convert coalesce into a case expression to lazily evaluate 
expressions from left to right and return first non NULL value . 


-- 
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.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