-
Notifications
You must be signed in to change notification settings - Fork 316
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: PREPARE and EXECUTE statement from mysql client #4125
feat: PREPARE and EXECUTE statement from mysql client #4125
Conversation
Now it works on some simple cases I tried. For |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4125 +/- ##
==========================================
- Coverage 85.12% 84.82% -0.31%
==========================================
Files 1020 1023 +3
Lines 179635 179907 +272
==========================================
- Hits 152920 152610 -310
- Misses 26715 27297 +582 |
Cool, let's take a look! Thank you. @MichaelScofield @fengjiachun |
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.
Leave some suggestions and questions, please take a look.
I found that there are not enough tests currently, especially the unit tests, could you add some?
Thank you, it looks great!
Got it. I'll make some changes later.
Sure. I'll try to add some sqlness tests as well, maybe copy some from duckdb :) |
e6904c5
to
0b72305
Compare
Changes have been done. The Since this only works for mysql client, I didn't find a way to add sqlness test for it. Maybe we can only test it manually. Fuzz test on inserting logical table failed on some reason. Don't know if it's related to this pr. The log is similar to #4122:
|
We can leave it in the next PR. Let's figure out how to test it in sqlness. Currently you can test it at greptimedb/tests-integration/tests/sql.rs Line 135 in a2e3532
Could you rebase the branch with the main? Looks like it's fixed already. |
It's almost done, thank you so much! @CookiePieWw Please take a look @MichaelScofield |
Updated and added |
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 work! Thanks a lot.
@CookiePieWw Appreciate your contribution, thanks a lot. |
@CookiePieWw Thanks for your contribution! Would you share your email address to me (by email to [email protected])? I'd like to send you a letter for further engagement :D |
) * feat: prepare stmt in mysql client * feat: execute stmt in mysql client * fix: handle parameters properly * refactor: use existing funcs to convert expr to scalar value * refactor: use uuid strings as stmt_key for queries from COM_PREPARE packet * refactor: take prepare and execute parser as submodule * test: add unit test for converting expr to scalar value * feat: deallocate stmt in mysql client * chore: comments and duplicates --------- Co-authored-by: dennis zhuang <[email protected]>
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
close #769
What's changed and what's your intention?
As title.
Checklist