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 BWC issue with aggregation func resolving #10557

Merged
merged 1 commit into from
Sep 18, 2020
Merged

Fix BWC issue with aggregation func resolving #10557

merged 1 commit into from
Sep 18, 2020

Conversation

seut
Copy link
Member

@seut seut commented Sep 18, 2020

Aggregation functions have partial intermediate states which cannot be used for aggregation full qualified resolving when a Signature is not available when the function is streamed by nodes < 4.2.
Thus the registered argument types of the deprecated FunctionInfo must be used for this fallback full qualified resolving and not the actual input types.

Relates #10415.

@seut seut added the v/4.2 label Sep 18, 2020
@seut
Copy link
Member Author

seut commented Sep 18, 2020

I'd add a crate-qa test for aggregations instead of adding a related test here as a follow up.

@seut seut added the ready-to-merge Let Mergify merge the PR once approved and checks pass label Sep 18, 2020
seut added a commit to crate/crate-qa that referenced this pull request Sep 18, 2020
We had a regression on BWC for aggregations which have a different
intermediate input data type than the initial argument type causing
aggregation streamed from a 4.1 node to a 4.2 node to not being resolvable. 
This adds the related statement to the rolling upgrade test to ensure
that it will correctly work on mixed version clusters.

Relates crate/crate#10557.
Aggregation functions have partial intermediate states which cannot be
used for aggregation full qualified resolving when a `Signature` is not
available when the function is streamed by nodes < 4.2.
Thus the registered argument types of the deprecated `FunctionInfo` must be used for this fallback full qualified resolving and not the actual input types.
@mergify mergify bot merged commit 1d792ac into master Sep 18, 2020
@mergify mergify bot deleted the s/fix-agg-bwc branch September 18, 2020 21:53
seut added a commit to crate/crate-qa that referenced this pull request Sep 25, 2020
We had a regression on BWC for aggregations which have a different
intermediate input data type than the initial argument type causing
aggregation streamed from a 4.1 node to a 4.2 node to not being resolvable. 
This adds the related statement to the rolling upgrade test to ensure
that it will correctly work on mixed version clusters.

Relates crate/crate#10557.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Let Mergify merge the PR once approved and checks pass v/4.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants