| 76 | } |
| 77 | |
| 78 | arrow::Result<GetExportedKeys> ParseCommandGetExportedKeys( |
| 79 | const google::protobuf::Any& any) { |
| 80 | pb::sql::CommandGetExportedKeys command; |
| 81 | if (!any.UnpackTo(&command)) { |
| 82 | return Status::Invalid("Unable to unpack CommandGetExportedKeys."); |
| 83 | } |
| 84 | |
| 85 | GetExportedKeys result; |
| 86 | result.table_ref = {PROPERTY_TO_OPTIONAL(command, catalog), |
| 87 | PROPERTY_TO_OPTIONAL(command, db_schema), command.table()}; |
| 88 | return result; |
| 89 | } |
| 90 | |
| 91 | arrow::Result<GetPrimaryKeys> ParseCommandGetPrimaryKeys( |
| 92 | const google::protobuf::Any& any) { |