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

   ## Which issue does this PR close?
   
   N/A - This is a new optimization improvement
   
   - Closes #.
   
   ## Rationale for this change
   
   This PR implements an optimization for CASE expressions that removes 
unreachable `WHEN false` branches and handles `WHEN true` cases that make 
subsequent branches unreachable.
   
   For example:
   ```sql
   CASE 
     WHEN false THEN 1  -- never executed
     ELSE 2  
   END
   
   
   ## Are there any user-facing changes?
   No
   
   This is my first contribution to DataFusion. Could a committer please 
trigger the CI tasks?
   @alamb @andygrove @tustvold @ursabot
   


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