When query Pinot via Trino (362), the avg() functi...
# troubleshooting
m
When query Pinot via Trino (362), the avg() function doesn’t seem to work correctly. It always returns no data…
m
Do you see any error anywhere in the logs?
logs/pinot-all.log
on each of the components. Might be worth creating a GitHub issue if you have an easy way that someone else can reproduce/debug - https://github.com/apache/pinot/issues
m
Seems to be an issue with the pinot connector in Trino
@Elon FYI
👀 1
m
ah cool, ok
e
Question @Map - can you paste the table schema? I wanted to see if there are multiple columns which are the same when case is ignored
m
No there isn’t. Very positive about it
other aggregates like max, min, count work
e
Does the column which does not work contain uppercase characters?
in pinot, all columns are uppercase
👍 1
e
omg - I have that locally (we use trino connector in prod) but I need to put that into one of the open pr's I have facepalm I will do this tonight, latest tomorrow. Thanks for catching this @Map, apologies for the issue.
There are a few other fixes in the 2 open pr's I have as well, will get them to you - hopefully will be in the latest release (trino 365)
Trying to push everything I have so that open source == what we have.
As soon as I update it I'll let you know
m
Thanks so much @Elon!
👍 2
e
The last commit fixes the issue. Also found that it affects approx_distinct as well. Thanks for catching this @Map!
👍 1