| 122 | } |
| 123 | |
| 124 | arrow::Result<GetDbSchemas> ParseCommandGetDbSchemas(const google::protobuf::Any& any) { |
| 125 | pb::sql::CommandGetDbSchemas command; |
| 126 | if (!any.UnpackTo(&command)) { |
| 127 | return Status::Invalid("Unable to unpack CommandGetDbSchemas."); |
| 128 | } |
| 129 | |
| 130 | GetDbSchemas result; |
| 131 | result.catalog = PROPERTY_TO_OPTIONAL(command, catalog); |
| 132 | result.db_schema_filter_pattern = |
| 133 | PROPERTY_TO_OPTIONAL(command, db_schema_filter_pattern); |
| 134 | return result; |
| 135 | } |
| 136 | |
| 137 | arrow::Result<PreparedStatementQuery> ParseCommandPreparedStatementQuery( |
| 138 | const google::protobuf::Any& any) { |