-
Notifications
You must be signed in to change notification settings - Fork 760
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
feat: add window function first_value and last_value #11587
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just need to push the value at frame_start
(when frame_started
) and frame_end - 1
(when frame_ended
) to the result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method resolve_general_window_function
in src/query/sql/src/planner/semantic/type_check.rs is for lag
and lead
only now, should modify it.
src/query/service/src/pipelines/processors/transforms/window/transform_window.rs
Outdated
Show resolved
Hide resolved
src/query/service/src/pipelines/processors/transforms/window/transform_window.rs
Outdated
Show resolved
Hide resolved
src/query/service/src/pipelines/processors/transforms/window/transform_window.rs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Add window function
first_value
andlast_value
.Part of #11148