-
Notifications
You must be signed in to change notification settings - Fork 333
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
feat: impl Display for Statement #3744
Conversation
hi @tisonkun , I've finished the main logic. Could you please help check if there are any issues? Afterwards, I will add tests based on this. |
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.
Thank you! This patch goes in the good direction. Comments inline.
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.
Rest LGTM. You can start to write test. Thank you!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3744 +/- ##
==========================================
- Coverage 85.59% 85.24% -0.36%
==========================================
Files 947 947
Lines 160612 161309 +697
==========================================
+ Hits 137482 137510 +28
- Misses 23130 23799 +669 |
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'll give this patch another round tomorrow, and I suggest you revise it once more with this comment b24d334#r1576504197 in consideration.
Signed-off-by: tison <[email protected]>
I push a commit to resolve most of the comments above. Now the remaining part is:
I'll give another round tomorrow. |
Signed-off-by: tison <[email protected]>
cc @killme2008 @MichaelScofield in the follow-up we'd change the SQL logging logics with these Err(e) => {
let redacted = sql::util::redact_sql_secrets(query.as_ref());
if e.status_code().should_log_error() {
error!(e; "Failed to execute query: {redacted}");
} else {
debug!("Failed to execute query: {redacted}, {e}");
}
results.push(Err(e));
break;
} to Err(e) => {
if e.status_code().should_log_error() {
error!(e; "Failed to execute query: {stmt}");
} else {
debug!("Failed to execute query: {stmt}, {e}");
}
results.push(Err(e));
break; see #3646 for more details. |
e28d7d4
to
c21ee4c
Compare
Signed-off-by: tison <[email protected]>
c21ee4c
to
320cffd
Compare
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.
Fantastic effort and dedication! Many thanks! I've included some suggestions for your consideration. Please review them. @irenjj
Signed-off-by: tison <[email protected]>
b755880
to
3e36273
Compare
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.
LGTM
Signed-off-by: tison <[email protected]>
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
close #3646
What's changed and what's your intention?
Implement Display for Statement.
Checklist