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

fix: correct broken serialization #828

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

JamesGuthrie
Copy link
Member

@JamesGuthrie JamesGuthrie commented Nov 13, 2024

Unfortunately the usage of Internal in function APIs throws type safety out of the window. A handful of aggregate serialization functions were incorrectly implemented, and operated on the incorrect type, resulting in incorrect data in the serialized type.

Fortunately, this serialization is only used when partial aggregation kicks in, so is not always triggered.

@JamesGuthrie
Copy link
Member Author

This should fix #811

Unfortunately the usage of `Internal` in function APIs throws type
safety out of the window. A handful of aggregate serialization
functions were incorrectly implemented, and operated on the incorrect
type, resulting in incorrect data in the serialized type.

Fortunately, this serialization is only used when [partial aggregation]
kicks in, so is not always triggered.

[partial aggregation]: https://www.postgresql.org/docs/current/xaggr.html#XAGGR-PARTIAL-AGGREGATES
@JamesGuthrie JamesGuthrie merged commit 36aec42 into main Nov 13, 2024
3 of 13 checks passed
@JamesGuthrie JamesGuthrie deleted the jg/fix-broken-serialization branch November 13, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants