Skip to content

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 Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt) 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants