Fix Pinot aggregation pushdown for subqueries#12653
Conversation
|
Fixes #12655 |
There was a problem hiding this comment.
Can aggregates be empty at this point?
There was a problem hiding this comment.
Now aggregates would only contain 1 aggregate.
f12ceab to
8fea740
Compare
|
Thanks for fixing this bug! |
8fea740 to
27b0bff
Compare
|
@elonazoulay when can this pull be merged? |
27b0bff to
f79a4d9
Compare
|
Resolves #9134 |
f85aab4 to
cb49aa2
Compare
plugin/trino-pinot/src/main/java/io/trino/plugin/pinot/PinotMetadata.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Done. Noticed that using formatted(...) disables the SQL formatting so the table names are hardcoded. Seems to be similar to other use cases, lmk if you prefer using formatted(tableName).
.../trino-pinot/src/test/java/io/trino/plugin/pinot/BasePinotIntegrationConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-pinot/src/main/java/io/trino/plugin/pinot/PinotMetadata.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
it looks like this method does things that do not match what the name suggests (see pattern matching implementCountDistinct.getPattern().matches()
There was a problem hiding this comment.
lmk if the new name is ok: isAggregationPushdownSupported. Thanks for all the advice!
|
@elonazoulay @hashhar when can this pull be merged? |
cb49aa2 to
0317327
Compare
plugin/trino-pinot/src/test/java/io/trino/plugin/pinot/PinotQueryRunner.java
Show resolved
Hide resolved
plugin/trino-pinot/src/main/java/io/trino/plugin/pinot/PinotMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-pinot/src/main/java/io/trino/plugin/pinot/PinotMetadata.java
Outdated
Show resolved
Hide resolved
0317327 to
524d333
Compare
524d333 to
2defb1b
Compare
|
Thank you! |
Description
Related issues, pull requests, and links
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: