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

Return proper number of expressions for nth_value_agg #9044

Merged
merged 6 commits into from
Jan 30, 2024
Merged

Return proper number of expressions for nth_value_agg #9044

merged 6 commits into from
Jan 30, 2024

Conversation

mustafasrepo
Copy link
Contributor

Which issue does this PR close?

Closes #9028.

Rationale for this change

fn expressions method of the nth_value_agg returns missing information. For this reason, nth_value_agg cannot be decoded properly with protobuf. For more explanation see #9028. This PR fixes this problem.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Copy link
Contributor

@scsmithr scsmithr left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for getting that fixed.

datafusion/proto/tests/cases/roundtrip_physical_plan.rs Outdated Show resolved Hide resolved
mustafasrepo and others added 3 commits January 30, 2024 09:16
@alamb alamb merged commit efd2fd2 into apache:main Jan 30, 2024
22 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NthValueAgg returns 1 physical expression, but needs 2 when being constructed with create_aggregate_expr
4 participants