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

Backport to 37: group by count distinct doesn't work for timestamps with time zone #10105

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 16, 2024

(note this targets branch-37, NOT main)

Which issue does this PR close?

Part of 37 maintenance release #9904

Rationale for this change

Backport fixes for regressions

What changes are included in this PR?

Backport #10042, fix for #10043 to branch-37

Are these changes tested?

tests are included in backport

* Fix DistinctCount for timestamps with time zone

Preserve the original data type in the aggregation state

* Add tests for decimal count distinct
@github-actions github-actions bot added physical-expr Physical Expressions sqllogictest labels Apr 16, 2024
@alamb alamb marked this pull request as ready for review April 16, 2024 21:55
@alamb
Copy link
Contributor Author

alamb commented Apr 17, 2024

@andygrove do you happen to have time to review / approve this PR for the 37.1.0 release?

}
dt @ Timestamp(Microsecond, _) => Box::new(
PrimitiveDistinctCountAccumulator::<TimestampMicrosecondType>::new()
.with_data_type(dt.clone()),
Copy link
Member

Choose a reason for hiding this comment

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

👍

@alamb
Copy link
Contributor Author

alamb commented Apr 17, 2024

FYI @joroKr21 and @thinkharderdev

@alamb alamb merged commit 9b0f4e2 into apache:branch-37 Apr 17, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions sqllogictest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants