-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use usize
rather than Option<usize>
to represent Limit::skip
and Limit::offset
#3374
Conversation
Signed-off-by: remzi <[email protected]>
Mark this as draft as I only update the logical plan so far. |
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 is looking good so far. Nice simplification.
Signed-off-by: remzi <[email protected]>
Signed-off-by: remzi <[email protected]>
Signed-off-by: remzi <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #3374 +/- ##
==========================================
- Coverage 85.58% 85.58% -0.01%
==========================================
Files 296 296
Lines 54175 54158 -17
==========================================
- Hits 46364 46349 -15
+ Misses 7811 7809 -2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
usize
to represent Limit::skip
usize
rather than Option<usize>
to represent Limit::skip
and Limit::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.
Looks good to me @HaoYang670 -- thanks!
fyi @turbo1912 and @AssHero and @
ming535 who have contributed to this code recently
/// Maximum number of rows to fetch | ||
pub skip: usize, | ||
/// Maximum number of rows to fetch, | ||
/// None means fetching all rows |
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.
👍
Benchmark runs are scheduled for baseline = c359018 and contender = 43e2d91. 43e2d91 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
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.
Great job.
_ => {} | ||
return Ok(input.as_ref().clone()); | ||
} else { | ||
{} |
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.
redundant part
😂Look like my review is late, new a PR for it |
Signed-off-by: remzi [email protected]
Which issue does this PR close?
Closes #3369.
Rationale for this change
skip = None
andskip = Some(0)
are equivalent, so we don't need both of them and theOptional
type here is redundant. We useusize
as the type ofskip
so thatskip = None
andskip = Some(0)
can be simplified toskip = 0
What changes are included in this PR?
Are there any user-facing changes?
Yes.