| 177 | } |
| 178 | |
| 179 | arrow::Result<GetXdbcTypeInfo> ParseCommandGetXdbcTypeInfo( |
| 180 | const google::protobuf::Any& any) { |
| 181 | pb::sql::CommandGetXdbcTypeInfo command; |
| 182 | if (!any.UnpackTo(&command)) { |
| 183 | return Status::Invalid("Unable to unpack CommandGetXdbcTypeInfo."); |
| 184 | } |
| 185 | |
| 186 | GetXdbcTypeInfo result; |
| 187 | result.data_type = PROPERTY_TO_OPTIONAL(command, data_type); |
| 188 | return result; |
| 189 | } |
| 190 | |
| 191 | arrow::Result<GetTables> ParseCommandGetTables(const google::protobuf::Any& any) { |
| 192 | pb::sql::CommandGetTables command; |