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

Optimize first_value and last_value functions with IGNORE NULLS #22092

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

kasiafi
Copy link
Member

@kasiafi kasiafi commented May 23, 2024

Record recently seen non null or null positions,
and use them when processing new frames.

Should speed up queries with regular framing like
ROWS BETWEEN 100 PRECEDING AND 100 FOLLOWING,
ROWS CURRENT ROW,
or RANGE UNBOUNDED PRECEDING UNBOUNDED FOLLOWING,
and with non-null values being sparse or none.

@cla-bot cla-bot bot added the cla-signed label May 23, 2024
Record recently seen non null or null positions,
and use them when processing new frames.

Should speed up queries with regular framing like
ROWS BETWEEN 100 PRECEDING AND 100 FOLLOWING,
ROWS CURRENT ROW,
or RANGE UNBOUNDED PRECEDING UNBOUNDED FOLLOWING,
and with non-null values being sparse or none.
@kasiafi kasiafi merged commit b6752c9 into trinodb:master Jun 3, 2024
94 checks passed
@github-actions github-actions bot added this to the 450 milestone Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants