| 135 | } |
| 136 | |
| 137 | arrow::Result<PreparedStatementQuery> ParseCommandPreparedStatementQuery( |
| 138 | const google::protobuf::Any& any) { |
| 139 | pb::sql::CommandPreparedStatementQuery command; |
| 140 | if (!any.UnpackTo(&command)) { |
| 141 | return Status::Invalid("Unable to unpack CommandPreparedStatementQuery."); |
| 142 | } |
| 143 | |
| 144 | PreparedStatementQuery result; |
| 145 | result.prepared_statement_handle = command.prepared_statement_handle(); |
| 146 | return result; |
| 147 | } |
| 148 | |
| 149 | arrow::Result<StatementQuery> ParseCommandStatementQuery( |
| 150 | const google::protobuf::Any& any) { |