clintf1982 opened a new issue, #10109:
URL: https://github.com/apache/iceberg/issues/10109

   ### Query engine
   
   Spark
   
   ### Question
   
   Table X has a partition that uses id.
   
   **I perform the following query:**
   select count(1) from X where id > (select max(id) from X)
   
   Part of the query plan is:
   BatchScan nc.X[id#9] nc.X (branch=null) [filters=id IS NOT NULL, groupedBy=] 
RuntimeFilters: []
   (No pushdown filters except the is not null)
   
   **However for the following query:**
   select count(1) from X where id > 100000
   Part of the query plan is:
   BatchScan nc.X[id#3] nc.X (branch=null) [filters=id IS NOT NULL, id > 
100000, groupedBy=] RuntimeFilters: []
   
   > 100000 was pushed down.
   Wasn't the max aggregate supposed to be pushed down too in the first query ? 
Am I missing any configuration ?


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