Skip to content

Conversation

@mustafasrepo
Copy link
Contributor

@mustafasrepo mustafasrepo commented Dec 8, 2023

Which issue does this PR close?

Closes #8403.

Rationale for this change

As described in the issue, window function RANK gives wrong results for some cases, also fails during execution for some other cases. The PR8445 resolves the wrong result generation (This PR is merged).

This PR resolves the failure problem during execution. As far as I can tell this PR and #8445 jointly solves the issue.

What changes are included in this PR?

Are these changes tested?

Yes new test is added for window functions with empty record batches at their input.

Are there any user-facing changes?

@mustafasrepo mustafasrepo marked this pull request as draft December 8, 2023 07:58
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Dec 8, 2023
# 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.
@mustafasrepo mustafasrepo marked this pull request as ready for review December 8, 2023 09:51
@Dandandan Dandandan merged commit ecb7c7d into apache:main Dec 8, 2023
@viirya
Copy link
Member

viirya commented Dec 8, 2023

Looks good to me. Thanks @mustafasrepo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Wrong behavior for RANK over()

3 participants