Closed tontinton closed 2 days ago
For the 2nd query the reason is because if you look at the plan you'll notice some plan node between the aggregation and the table scan.
And the aggregation pushdown rule requires no intermediate plan nodes to be present.
For the first example it's not going to happen anyway because the grouping key is not a column reference.
I'm closing this as duplicate.
Duplicates https://github.com/trinodb/trino/issues/4171.
The following queries don't hit my connector's
applyAggregation
breakpoint: