MCPcopy Create free account
hub / github.com/apache/arrow / ParseCommandStatementQuery

Function ParseCommandStatementQuery

cpp/src/arrow/flight/sql/server.cc:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149arrow::Result<StatementQuery> ParseCommandStatementQuery(
150 const google::protobuf::Any& any) {
151 pb::sql::CommandStatementQuery command;
152 if (!any.UnpackTo(&command)) {
153 return Status::Invalid("Unable to unpack CommandStatementQuery");
154 }
155
156 StatementQuery result;
157 result.query = command.query();
158 result.transaction_id = command.transaction_id();
159 return result;
160}
161
162SubstraitPlan ParseStatementSubstraitPlan(const pb::sql::SubstraitPlan& pb_plan) {
163 return {pb_plan.plan(), pb_plan.version()};

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected