| 89 | } |
| 90 | |
| 91 | arrow::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 | |
| 104 | arrow::Result<GetSqlInfo> ParseCommandGetSqlInfo( |
| 105 | const google::protobuf::Any& any, const SqlInfoResultMap& sql_info_id_to_result) { |