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

[BUG FIX]: Proper Empty Batch handling in window execution #8466

Merged
merged 2 commits into from
Dec 8, 2023
Merged

[BUG FIX]: Proper Empty Batch handling in window execution #8466

merged 2 commits into from
Dec 8, 2023

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
23 checks passed
@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