dbtsai commented on pull request #29567:
URL: https://github.com/apache/spark/pull/29567#issuecomment-683259420


   This will be a very useful optimization to turn if causes into expressions 
that can be pushdown. For `CaseWhen` if there is only one branch, we can 
convert it into `If`. A PR before https://github.com/apache/spark/pull/21850 
tried this optimization but didn't end up merging into master because at that 
time, `CaseWhen` and `If` have not much performance difference. Maybe we can 
revisit it again.


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

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



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

Reply via email to