Guosmilesmile commented on code in PR #17946: URL: https://github.com/apache/iceberg/pull/17946#discussion_r3965391140
########## docs/docs/flink-queries.md: ########## @@ -77,6 +77,19 @@ SET table.exec.iceberg.use-flip27-source = false; All other SQL settings and options documented above are applicable to the FLIP-27 source. +### Batch aggregate push down + +A batch query that aggregates the whole table without `GROUP BY` or `LIMIT` can be answered from +file-level metrics without reading any data files when the following option is enabled: + +```sql +SET table.exec.iceberg.aggregate-push-down-enabled = true; +``` + +Only `COUNT`, `MAX` and `MIN` can be derived from file metrics. The push down is skipped, and the +query falls back to a regular scan, when it uses `GROUP BY` or `LIMIT`, when a filter does not Review Comment: Thanks, fix it now. -- 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]
