-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add window frame constructs - alternative #506
Conversation
0e2c3d0
to
947e18f
Compare
Codecov Report
@@ Coverage Diff @@
## master #506 +/- ##
==========================================
- Coverage 76.07% 76.06% -0.02%
==========================================
Files 155 156 +1
Lines 26544 26720 +176
==========================================
+ Hits 20194 20325 +131
- Misses 6350 6395 +45
Continue to review full report at Codecov.
|
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.
Thanks @jimexist -- this looks good -- I will try and review it carefully tomorrow
@@ -0,0 +1,337 @@ | |||
// Licensed to the Apache Software Foundation (ASF) under one |
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.
This mod is coupled with sqlparser AST and doesn't seem to be physical specific. Maybe it's better to move this mod into logical plane instead and reimport in physical plane?
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.
I agree it would make more sense for this module to be in logical_plan
(I think it would also be fine to do as a follow on 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.
will do a follow up pull request when I start working on implementing window frames (after order by and partition by)
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.
See #517
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.
which is fixed in #518
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.
@@ -0,0 +1,337 @@ | |||
// Licensed to the Apache Software Foundation (ASF) under one |
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.
I agree it would make more sense for this module to be in logical_plan
(I think it would also be fine to do as a follow on PR)
impl TryFrom<ast::WindowFrame> for WindowFrame { | ||
type Error = DataFusionError; | ||
|
||
fn try_from(value: ast::WindowFrame) -> Result<Self> { |
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.
👍 I really like this structure
/// There are five ways to describe starting and ending frame boundaries: | ||
/// | ||
/// 1. UNBOUNDED PRECEDING | ||
/// 2. <expr> PRECEDING |
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.
👍
78d49b8
to
31ec1ee
Compare
Which issue does this PR close?
Related #361
Based on #463
Closes #492
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?