Skip to content

Fix a bug in grouping aggregator when lookup dimension is being aggregated upon#15421

Merged
abhishekagarwal87 merged 1 commit into
apache:masterfrom
abhishekagarwal87:fix_grouping_aggregator_on_lookup
Nov 24, 2023
Merged

Fix a bug in grouping aggregator when lookup dimension is being aggregated upon#15421
abhishekagarwal87 merged 1 commit into
apache:masterfrom
abhishekagarwal87:fix_grouping_aggregator_on_lookup

Conversation

@abhishekagarwal87

@abhishekagarwal87 abhishekagarwal87 commented Nov 23, 2023

Copy link
Copy Markdown
Contributor

This PR fixes an issue where the grouping aggregator wrongly assumes that a key dimension is a virtual column and assigns a wrong name to it. This results in a mismatch between the dimensions that grouping aggregator sees and the dimension names that rows are aggregated on. And finally, grouping aggregator generates wrong result.

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@abhishekagarwal87 abhishekagarwal87 changed the title Fix grouping aggregator when one of the dimension is a simple extraction Fix a bug in grouping aggregator when lookup dimension is being aggregated upon Nov 23, 2023
@abhishekagarwal87
abhishekagarwal87 marked this pull request as ready for review November 23, 2023 11:04

@LakshSingla LakshSingla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR 🚀

@abhishekagarwal87
abhishekagarwal87 merged commit 3113e7b into apache:master Nov 24, 2023
yashdeep97 pushed a commit to yashdeep97/druid that referenced this pull request Dec 1, 2023
…ion (apache#15421)

This PR fixes an issue where the grouping aggregator wrongly assumes that a key dimension is a virtual column and assigns a wrong name to it. This results in a mismatch between the dimensions that grouping aggregator sees and the dimension names that rows are aggregated on. And finally, grouping aggregator generates wrong result.
yashdeep97 pushed a commit to yashdeep97/druid that referenced this pull request Dec 1, 2023
…ion (apache#15421)

This PR fixes an issue where the grouping aggregator wrongly assumes that a key dimension is a virtual column and assigns a wrong name to it. This results in a mismatch between the dimensions that grouping aggregator sees and the dimension names that rows are aggregated on. And finally, grouping aggregator generates wrong result.
@abhishekagarwal87
abhishekagarwal87 deleted the fix_grouping_aggregator_on_lookup branch December 8, 2023 15:32
@LakshSingla LakshSingla added this to the 29.0.0 milestone Jan 29, 2024
riovic918data pushed a commit to riovic918data/druid that referenced this pull request Jun 12, 2026
…ion (apache#15421)

This PR fixes an issue where the grouping aggregator wrongly assumes that a key dimension is a virtual column and assigns a wrong name to it. This results in a mismatch between the dimensions that grouping aggregator sees and the dimension names that rows are aggregated on. And finally, grouping aggregator generates wrong result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants