-
Notifications
You must be signed in to change notification settings - Fork 329
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
refactor: RegionEngine::handle_request always returns affected rows #2874
refactor: RegionEngine::handle_request always returns affected rows #2874
Conversation
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
cc @Dysprosium0626 you can take a review or take over this patch as the assignee. But it happens that I have time to take a look at this issue and it's weeks after your assignment. |
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
I prefer using words to align the DQL, DML, DDL, and DCL. The definition of |
@WenyXu do you mean revert the name to |
The reason I try to rename is |
Yes, the |
@WenyXu Updated. |
Signed-off-by: tison <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2874 +/- ##
===========================================
- Coverage 84.86% 84.35% -0.52%
===========================================
Files 745 749 +4
Lines 117222 117896 +674
===========================================
- Hits 99482 99448 -34
- Misses 17740 18448 +708 |
Shall we add a struct RegionResponse {
affected_rows: usize,
} |
@tisonkun I am sorry that I was busy on other things last week. I had done it halfway but delayed because I had to take some time to understand the code structure (I'm new here). Anyway, I have the similar idea as your refraction and thank you for taking over my task. I will take some other tasks. |
Thanks for your efforts. For the return type, I prefer at least a type alias over plain |
OK. I'll push a new commit later :D |
Signed-off-by: tison <[email protected]>
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.
Almost LGTM, thanks for this @tisonkun
Signed-off-by: tison <[email protected]>
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
This closes #2784.
@waynexia I wonder if we should add a type alias or wrapper for
AffectedRows
but I keep useusize
in this patch for a first step.Checklist
Refer to a related PR or issue link (optional)