Swinky opened a new pull request #31712:
URL: https://github.com/apache/spark/pull/31712


   ### What changes were proposed in this pull request?
   RewritePredicateSubquery Rule must not update Filters without subqueries.
   
   Following is one such example.
   
   `=== Applying Rule 
org.apache.spark.sql.catalyst.optimizer.RewritePredicateSubquery ===
    Project [a#0]                                                        
Project [a#0]
   !+- Filter (((a#0 > 1) OR (b#1 > 2)) AND ((c#2 > 1) AND (d#3 > 2)))   +- 
Filter ((((a#0 > 1) OR (b#1 > 2)) AND (c#2 > 1)) AND (d#3 > 2))
       +- LocalRelation <empty>, [a#0, b#1, c#2, d#3]                       +- 
LocalRelation <empty>, [a#0, b#1, c#2, d#3]
   `
   
   
   ### Why are the changes needed?
   minor change.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Existing UTs pass.
   


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