cloud-fan opened a new pull request #24675: [SPARK-27803][SQL] fix column 
pruning for python UDF
URL: https://github.com/apache/spark/pull/24675
 
 
   ## What changes were proposed in this pull request?
   
   In https://github.com/apache/spark/pull/22104 , we create the python-eval 
nodes at the end of the optimization phase, which causes a problem.
   
   After the main optimization batch, Filter and Project nodes are usually 
pushed to the bottom, near the scan node. However, if we extract Python UDFs 
from Filter/Project, and create a python-eval node under Filter/Project, it 
will break column pruning/filter pushdown of the scan node.
   
   There are some hacks in the `ExtractPythonUDFs` rule, to duplicate the 
column pruning and filter pushdown logic. However, it has some bugs as 
demonstrated in the new test case(only column pruning is broken). This PR 
removes the hacks and re-apply the column pruning and filter pushdown rules 
explicitly.
   
   ## How was this patch tested?
   
   new test
   

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


With regards,
Apache Git Services

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

Reply via email to