jackylee-ch commented on pull request #35669:
URL: https://github.com/apache/spark/pull/35669#issuecomment-1084485346


   > @cloud-fan I think we probably need to reach a consensus here :)
   > 
   > before this patch, the physical plan has
   > 
   > ```
   > Filter:
   > (((id#14 < 2) AND (part#15 = 0)) OR ((id#14 > 3) AND (part#15 = 1)))
   > 
   > ParquetScan DataFilters: 
   > [(((id#14 < 2) AND (part#15 = 0)) OR ((id#14 > 3) AND (part#15 = 1)))]
   > 
   > PartitionFilters: 
   > [((part#15 = 0) OR (part#15 = 1))]
   > 
   > PushedFilters: 
   > [Or(LessThan(id,2),GreaterThan(id,3))]
   > ```
   > 
   > after this patch, the physical plan has
   > 
   > ```
   > Filter:
   > (((id#14 < 2) AND (part#15 = 0)) OR ((id#14 > 3) AND (part#15 = 1)))
   > 
   > ParquetScan DataFilters: 
   > [(((id#14 < 2) AND (part#15 = 0)) OR ((id#14 > 3) AND (part#15 = 1)))]
   > 
   > PartitionFilters: 
   > [((part#15 = 0) OR (part#15 = 1))]
   > 
   > PushedDynamicalFilters: 
   > 
[Or(And(LessThan(id,2),EqualTo(part,0)),And(GreaterThan(id,3),EqualTo(part,1)))]
   > ```
   > 
   > Please note that `PushedFilters` is changed to `PushedDynamicalFilters`. 
`[Or(And(LessThan(id,2),EqualTo(part,0)),And(GreaterThan(id,3),EqualTo(part,1)))]`
 means data filter id < 2 is dynamically pushed to partition 0 and data filter 
id > 3 is dynamically pushed to partition 1.
   > 
   > Does this look OK to you?
   
   Kindly remind @cloud-fan 


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