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

Enforce required argument order in aggregation annotation parser #12396

Merged
merged 1 commit into from
May 19, 2022

Conversation

dain
Copy link
Member

@dain dain commented May 15, 2022

Input and output aggregation methods require a specific parameter order
but this not was being enforces by the annotation parser. Instead
this error causes confusing runtime errors.

Additionally, it appears that in older versions of Trino alternative
parameter orders were allowed, and there was a test for that. This test
is invalid and had been adjusted to ensure proper exceptions are thrown.

NOTE: this does not change any actual behavior and instead simply makes exceptions explicit.

Documentation

(X) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(X) No release notes entries required.
( ) Release notes entries required with the following suggested text:

@dain dain requested a review from electrum May 15, 2022 00:13
@cla-bot cla-bot bot added the cla-signed label May 15, 2022
@findepi findepi added the no-release-notes This pull request does not require release notes entry label May 16, 2022
Input and output aggregation methods require a specific parameter order
but this not was being enforces by the annotation parser.  Instead
this error causes confusing runtime errors.

Additionally, it appears that in older versions of Trino alternative
parameter orders were allowed, and there was a test for that. This test
is invalid and had been adjusted to ensure proper exceptions are thrown.
@dain dain force-pushed the aggregation-annotation-verification branch from 83a4d81 to 5dcd8b6 Compare May 19, 2022 01:55
@dain dain merged commit eae8344 into trinodb:master May 19, 2022
@github-actions github-actions bot added this to the 382 milestone May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

3 participants