viirya commented on pull request #32559:
URL: https://github.com/apache/spark/pull/32559#issuecomment-844328041


   > Yeah that was the idea was for things like conditions/values that are only 
sometimes evaluated, evaluate them as a subexpression IF that expression is 
used somewhere else that's always evaluated anyway. Right now (assuming the 
above patch is applied), extra conditions and values that are only sometimes 
evaluated might not be pulled out as subexpressions even if they could be. So 
you would never evaluate an expression eagerly if we weren't definitely going 
to evaluate it at some point. I can try to make a PR to explain what I mean 
(and fix the bug I mentioned)
   
   Okay. Could you submit the bug fix as a separate PR? For the other idea, it 
is another improvement and it is better not to mix them together.
   


-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to