Skip to content

Grouping id 2#10624

Closed
abhishekagarwal87 wants to merge 6 commits intoapache:masterfrom
abhishekagarwal87:grouping_id_2
Closed

Grouping id 2#10624
abhishekagarwal87 wants to merge 6 commits intoapache:masterfrom
abhishekagarwal87:grouping_id_2

Conversation

@abhishekagarwal87
Copy link
Contributor

A different way to do #10518. This avoids the grouping aggregation on historicals by re-working the query that is sent to historicals. Historicals don't get grouping aggregation at all. However, now you have a mismatch in result row signatures that needs to be fixed up in a few places.

query,
resource,
groupByStrategy.processSubqueryResult(subquery, query, resource, finalizingResults, false)
groupByStrategy.processSubqueryResult(subquery, withoutSubtotals(query), resource, finalizingResults, false)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs more thinking. why weren't we passing query.withSubtotalsSpec(null) instead of query

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some context is in here but not helpful - https://github.com/apache/druid/pull/5280/files#r181885318
I am concerned that modifying the query cause some problem down the line.

@jihoonson
Copy link
Contributor

@abhishekagarwal87 thanks for trying it out. As I commented in #10518 (comment), I prefer the original approach to this alternative.

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

Successfully merging this pull request may close these issues.

2 participants