Skip to content

Fix partial aggregation skipping with Decimal aggregators - #11833

Merged
Dandandan merged 2 commits into
apache:mainfrom
alamb:alamb/fix_sum_decmial
Aug 6, 2024
Merged

Fix partial aggregation skipping with Decimal aggregators#11833
Dandandan merged 2 commits into
apache:mainfrom
alamb:alamb/fix_sum_decmial

Conversation

@alamb

@alambalamb commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes#11832

Rationale for this change

Otherwise when the dynamic grouping skip is hit you get an error

What changes are included in this PR?

Correctly set the intermediate aggregate type

Are these changes tested?

New slt test

Are there any user-facing changes?

Bug fix (but affected code has not been released)

@github-actionsgithub-actionsBot added the sqllogictest SQL Logic Tests (.slt) label Aug 5, 2024
@alambalamb changed the title Alamb/fix sum decmialFix partial aggregation skipping with Decimal aggregatorsAug 5, 2024

@korowakorowa 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.

LGTM, thank you @alamb

@Dandandan
Dandandan merged commit 1c98e6e into apache:mainAug 6, 2024
@alamb
alamb deleted the alamb/fix_sum_decmial branch August 6, 2024 10:19
@alamb

alamb commented Aug 6, 2024

Copy link
Copy Markdown
ContributorAuthor

Thanks @Dandandan and @korowa

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictestSQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partial aggregate error: column types must match schema types, expected Decimal128\(20, 3\) but found Decimal128\(38, 10\) at column index 1

3 participants

@alamb@Dandandan@korowa