-
Notifications
You must be signed in to change notification settings - Fork 322
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: support set global variable #1359
Conversation
2722219
to
246c135
Compare
Codecov Report
@@ Coverage Diff @@
## main #1359 +/- ##
=========================================
Coverage 66.03% 66.04%
Complexity 277 277
=========================================
Files 571 571
Lines 107721 107801 +80
Branches 904 904
=========================================
+ Hits 71136 71196 +60
- Misses 36393 36413 +20
Partials 192 192
Continue to review full report at Codecov.
|
src/sdk/sql_cluster_test.cc
Outdated
tables.clear(); | ||
|
||
::hybridse::sdk::Status status; | ||
std::string sql = "set @@global.enable_trace='true';"; |
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.
test SET GLOBAL
as well
PR review meeting note:
|
@@ -96,6 +97,11 @@ bool ClusterSDK::TriggerNotify() const { | |||
return zk_client_->Increment(notify_path_); | |||
} | |||
|
|||
bool ClusterSDK::GlobalVarNotify() const { | |||
LOG(INFO) << "Global variable changed trigger notify node"; |
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.
Remove or set as DLOG
@@ -123,6 +123,7 @@ class DBSDK { | |||
std::string* msg); | |||
std::vector<std::shared_ptr<hybridse::sdk::ProcedureInfo>> GetProcedureInfo(std::string* msg); | |||
virtual bool TriggerNotify() const = 0; | |||
virtual bool GlobalVarNotify() const = 0; |
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.
Call TriggerNotify as different notify_type. can do later
feature:
support set@@global.xxx = xxx & set GLOBAL xxx = xxx for Add global variable table #1257