-
Notifications
You must be signed in to change notification settings - Fork 409
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
Support offset frame type #7514
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/cc @windtalker @SeaRise |
Co-authored-by: SeaRise <hhssearise@foxmail.com>
/cc @SeaRise |
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.
Others LGTM
/cc @SeaRise |
@@ -296,6 +409,9 @@ void WindowTransformAction::advanceFrameStart() | |||
break; | |||
} | |||
case WindowFrame::BoundaryType::Offset: | |||
frame_start = stepForward(current_row, window_description.frame.begin_offset); |
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 stepForward
only works for rows
frame type, need explicitly throw error if the frame type is range or groups.
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
stepForward
only works forrows
frame type, need explicitly throw error if the frame type is range or groups.
Both rows
and range
will reach to here, so I think we should use the correct function according to frame type, instead of throwing exception.
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.
Does this means you will support range
type in this pr?
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.
Does this means you will support
range
type in this pr?
No, but I will throw exception for range
type here.
@@ -396,6 +512,10 @@ void WindowTransformAction::advanceFrameEnd() | |||
break; | |||
} | |||
case WindowFrame::BoundaryType::Offset: | |||
{ | |||
std::tie(frame_end, frame_ended) = stepBackward(current_row, window_description.frame.end_offset); |
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.
Ditto.
/cc @windtalker |
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.
Others LGTM
/merge |
@Lloyd-Pottiger: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: c4dbd55
|
What problem does this PR solve?
Issue Number: ref #7376
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note