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

Allow to configure the aggregation functions for default star tree index #14560

Open
chrajeshbabu opened this issue Nov 28, 2024 · 0 comments
Open

Comments

@chrajeshbabu
Copy link
Contributor

chrajeshbabu commented Nov 28, 2024

Currently in the default star tree pre-aggregating sum and count of the metrics. It would be better to allow configuring other functions like min, max in the table index configs. In our usecase most of the queries fits through the default star tree index but cannot use because other functions like min, max required in queries.


    TreeMap<AggregationFunctionColumnPair, AggregationSpec> aggregationSpecs = new TreeMap<>();
    aggregationSpecs.put(AggregationFunctionColumnPair.COUNT_STAR, AggregationSpec.DEFAULT);
    for (String numericMetric : numericMetrics) {
      aggregationSpecs.put(new AggregationFunctionColumnPair(AggregationFunctionType.SUM, numericMetric),
          AggregationSpec.DEFAULT);
    }

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

No branches or pull requests

2 participants