Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aggregation of type expression #77

Open
saketbairoliya2 opened this issue Nov 16, 2022 · 3 comments
Open

Add support for aggregation of type expression #77

saketbairoliya2 opened this issue Nov 16, 2022 · 3 comments

Comments

@saketbairoliya2
Copy link
Contributor

Screenshot 2022-11-16 at 9 09 50 AM

Getting above error when trying to use aggregation of type expression

@jbguerraz
Copy link
Contributor

Hello @saketbairoliya2
Adding an aggregator is pretty straigth-forward, take a look here: https://github.com/grafadruid/go-druid/tree/master/builder/aggregation
basically add a case here https://github.com/grafadruid/go-druid/blob/master/builder/aggregation/aggregation.go#L40
and then provide the structure for expression like here for instance https://github.com/grafadruid/go-druid/blob/master/builder/aggregation/string_last.go
I didn't find any expression aggregator here https://druid.apache.org/docs/latest/querying/aggregations.html nor here https://druid.apache.org/docs/latest/development/extensions.html could you please point me to the aggregator documentation ?
Thank you!

@jbguerraz
Copy link
Contributor

@saketbairoliya2 any news on that ? since I didn't find that aggregator, maybe we can close it ?

@AngryShamrock
Copy link

@jbguerraz This aggregation type doesn't seem to be documented, but it does exist. I've seen it generated by EXPLAIN PLAN FOR when using Druid SQL

Here's the list of properties it accepts, from the druid github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants