-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Use usize rather than Option<usize> to represent Limit::skipand Limit::offset
#3374
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
Conversation
Signed-off-by: remzi <13716567376yh@gmail.com>
|
Mark this as draft as I only update the logical plan so far. |
andygrove
left a comment
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 <13716567376yh@gmail.com>
Signed-off-by: remzi <13716567376yh@gmail.com>
Signed-off-by: remzi <13716567376yh@gmail.com>
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::skipusize rather than Option<usize> to represent Limit::skipand Limit::offset
alamb
left a comment
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. |
jackwener
left a comment
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 13716567376yh@gmail.com
Which issue does this PR close?
Closes #3369.
Rationale for this change
skip = Noneandskip = Some(0)are equivalent, so we don't need both of them and theOptionaltype here is redundant. We useusizeas the type ofskipso thatskip = Noneandskip = Some(0)can be simplified toskip = 0What changes are included in this PR?
Are there any user-facing changes?
Yes.