trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.15k stars 2.93k forks source link

Implement TestPushAggregationIntoTableScan #5812

Open findepi opened 3 years ago

findepi commented 3 years ago

Add a test for io.prestosql.sql.planner.iterative.rule.PushAggregationIntoTableScan. perhaps similar to io.prestosql.sql.planner.iterative.rule.TestPushPredicateIntoTableScan

findepi commented 3 years ago

cc @martint @Parth-Brahmbhatt

findepi commented 3 years ago

https://github.com/prestosql/presto/pull/5756 adds MockConnectorFactory support for applyAggregation and an example test using that. It's likely useful for implementing a test for PushAggregationIntoTableScan.