MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / GetNewSQLRouter

Function GetNewSQLRouter

src/sdk/sql_cluster_test.cc:155–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154
155static std::shared_ptr<SQLRouter> GetNewSQLRouter() {
156 SQLRouterOptions sql_opt;
157 sql_opt.zk_cluster = mc_->GetZkCluster();
158 sql_opt.zk_path = mc_->GetZkPath();
159 sql_opt.enable_debug = hybridse::sqlcase::SqlCase::IsDebug();
160 return NewClusterSQLRouter(sql_opt);
161}
162
163TEST_P(SQLSDKQueryTest, sql_sdk_distribute_batch_request_test) {
164 auto sql_case = GetParam();

Callers 1

mainFunction · 0.70

Calls 3

NewClusterSQLRouterFunction · 0.85
GetZkClusterMethod · 0.80
GetZkPathMethod · 0.80

Tested by

no test coverage detected