haohuaijin opened a new pull request, #8957:
URL: https://github.com/apache/arrow-datafusion/pull/8957

   ## Which issue does this PR close?
   
   
   Closes #8909
   
   ## Rationale for this change
   
   see #8910 and #8909 ,
   
   ## What changes are included in this PR?
   
   before this pr, in simplify_espression we try to fold the expression, but 
this can result some error, for example 
   ```sql
   select case 1 when 2 then 4/0 end;
   ```
   `4/0` never reach in runtime.
   
   so in this PR, if we encounter an error during fold expression, return the 
origin expression, and the error will occur in runtime if it is a real 
error(not the short-circuit problem).
   
   Note: this pr doesn't solve #8910 , due to #8927
   
   
   
   ## Are these changes tested?
   
   test by existing tests
   
   ## Are there any user-facing changes?
   
   
   


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

Reply via email to