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

Function ParseCommandGetPrimaryKeys

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

Source from the content-addressed store, hash-verified

89}
90
91arrow::Result<GetPrimaryKeys> ParseCommandGetPrimaryKeys(
92 const google::protobuf::Any& any) {
93 pb::sql::CommandGetPrimaryKeys command;
94 if (!any.UnpackTo(&command)) {
95 return Status::Invalid("Unable to unpack CommandGetPrimaryKeys.");
96 }
97
98 GetPrimaryKeys result;
99 result.table_ref = {PROPERTY_TO_OPTIONAL(command, catalog),
100 PROPERTY_TO_OPTIONAL(command, db_schema), command.table()};
101 return result;
102}
103
104arrow::Result<GetSqlInfo> ParseCommandGetSqlInfo(
105 const google::protobuf::Any& any, const SqlInfoResultMap& sql_info_id_to_result) {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected