-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support Generic Aggregate Function State #49000
Closed
3 tasks done
Labels
Comments
24 tasks
LiShuMing
changed the title
Support
Support Generic Aggregate Function State
Aug 14, 2024
_state
/_union
/_merge
combinator
This was referenced Aug 14, 2024
Open
42 tasks
This was referenced Aug 21, 2024
This was referenced Aug 29, 2024
just to confirm, would this feature be available to Java UDAF too? |
Not support yet. Only build-in aggregation functions are supported. |
Merged
24 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature request
Is your feature request related to a problem? Please describe.
When the detail data is very large, the aggregation model is very useful for querying after summarizing by dimensions; moreover, the aggregation model is also the necessary means for incremental computation of aggregate functions in StarRocks at present.
However, it currently only supports the following aggregate functions, which are very limited; even in terms of extensibility, if you want to support intermediate states such as HllSketch or Avg functions, the current development support logic is also quite complicated, with a lot of repetitive work.
Describe the solution you'd like
Since all aggregate functions have already defined the types of their intermediate states and methods for serialization/deserialization, all aggregate functions defined in the Query Engine can be used as columns in the aggregation model, and are no longer limited to the aggregate functions currently supported by the aggregation model.
Support Generic Aggregate Function in Aggregate Model
Since obtaining an aggregate function requires the function's input parameters + return type + whether it is nullable, the input parameters of the aggregate function need to be input here to uniquely determine an aggregate function.
Support Aggregate Function Combinator
[Feature] (Part2) Support _state/_union/_merge aggregate funciton combinator #50425
Use combinator to support common aggregate functions transforms:
_state
combinator_union
combinator_merge
combinatorSupport to Use Generic Aggregate Function State in Synchronized Materialized View
Support to Use Generic Aggregate Function State in ASynchronized Materialized View
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: