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

Minor: sort requirement check for Last function's merge_batch #13980

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

jayzhan211
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

We also check requirement_satisfied for update_batch, add it for merge_batch.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

…alue function

- Updated LastValueAccumulator to include requirement satisfaction check before updating the last value.
- Added SQL logic tests to verify the behavior of the last_value function with merge batches and ensure correct aggregation in various scenarios.
@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) functions labels Jan 2, 2025
Copy link
Contributor

@berkaysynnada berkaysynnada left a comment

Choose a reason for hiding this comment

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

LGTM. There is also a similar mechanism for the first function. Can we apply this update there, too?

@jayzhan211
Copy link
Contributor Author

Not pretty sure is the logic applied to first too. I will work on it later on

@jayzhan211 jayzhan211 merged commit ab1de2c into apache:main Jan 3, 2025
26 checks passed
@jayzhan211 jayzhan211 deleted the last-merge-batch branch January 3, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants