hey, i am playing with presto/pinot and when doing...
# general
p
hey, i am playing with presto/pinot and when doing simple count queries i’m hitting rowcount maximums, anyone know why the aggregation isn’t delegated to pinot?
i’m not sure if there’s some kind of hint, but it seems odd that presto would pull in all the rows instead of letting the provider do the aggregation
i think maybe i should ask in trino slack channel instead… ignore me for now
k
there is no need for any hint, it should push down aggregation and filter
x
which presto and pinot are you using?
k
ok, trino has some tricks @Elon can help
p
presto/343
pinot i am on “latest” pulled today, not sure the versionn
m
this is an open issue in Trino https://github.com/trinodb/trino/pull/6069
p
whoa, nice find!
e
Yep, we use it in production here, along w the other pull requests:)
m
you can use dynamic tables as a hint:
Copy code
SELECT * FROM pinot.default."SELECT SELECT MAX(col1), COUNT(col2) FROM pinot_table GROUP BY col3, col4";
👍 1
p
ooh, wow, that at least will give me some idea how it might work when it’s fixed 🙂
@Elon do you have your own fork, image, build? is that something you might recommend?
and thanks for the quick feedback folks, very helpful
e
It might be safer to use the pull requests on github, let me think on that.
This all should be merged soon though