Skip to content

Comments

Fix getResultType for HLL, quantiles aggregators.#15043

Merged
cryptoe merged 1 commit intoapache:masterfrom
gianm:fix-result-types-no-finalization
Sep 27, 2023
Merged

Fix getResultType for HLL, quantiles aggregators.#15043
cryptoe merged 1 commit intoapache:masterfrom
gianm:fix-result-types-no-finalization

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented Sep 26, 2023

The aggregators had incorrect types for getResultType when shouldFinalze is false. They had the finalized type, but they should have had the intermediate type.

Also includes a refactor of how ExprMacroTable is handled in tests, to make it easier to add tests for this to the MSQ module. The bug was originally noticed because the incorrect result types caused MSQ queries with DS_HLL to behave erratically.

The aggregators had incorrect types for getResultType when shouldFinalze
is false. They had the finalized type, but they should have had the
intermediate type.

Also includes a refactor of how ExprMacroTable is handled in tests, to make
it easier to add tests for this to the MSQ module. The bug was originally
noticed because the incorrect result types caused MSQ queries with DS_HLL
to behave erratically.
@gianm gianm added the Bug label Sep 26, 2023
@github-actions github-actions bot added Area - Batch Ingestion Area - Querying Area - Dependencies Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Sep 26, 2023
@cryptoe
Copy link
Contributor

cryptoe commented Sep 27, 2023

IT failures look unrelated. Thanks for the bug fix @gianm 🚀

@cryptoe cryptoe merged commit 3dabfea into apache:master Sep 27, 2023
@gianm gianm deleted the fix-result-types-no-finalization branch September 27, 2023 18:55
@LakshSingla LakshSingla added this to the 28.0 milestone Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - Dependencies Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Area - Querying Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants