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

Method GetSQLPlan

src/sdk/sql_cluster_router.cc:1032–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032bool SQLClusterRouter::GetSQLPlan(const std::string& sql,
1033 ::hybridse::node::NodeManager* nm,
1034 ::hybridse::node::PlanNodeList* plan) {
1035 if (nm == NULL || plan == NULL) return false;
1036 ::hybridse::base::Status sql_status;
1037 PlanAPI::CreatePlanTreeFromScript(sql, *plan, nm, sql_status);
1038 if (0 != sql_status.code) {
1039 LOG(WARNING) << sql_status.msg;
1040 return false;
1041 }
1042 return true;
1043}
1044
1045bool SQLClusterRouter::RefreshCatalog() {
1046 bool ok = cluster_sdk_->Refresh();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected