| 210 | } |
| 211 | |
| 212 | arrow::Result<StatementUpdate> ParseCommandStatementUpdate( |
| 213 | const google::protobuf::Any& any) { |
| 214 | pb::sql::CommandStatementUpdate command; |
| 215 | if (!any.UnpackTo(&command)) { |
| 216 | return Status::Invalid("Unable to unpack CommandStatementUpdate."); |
| 217 | } |
| 218 | |
| 219 | StatementUpdate result; |
| 220 | result.query = command.query(); |
| 221 | result.transaction_id = command.transaction_id(); |
| 222 | return result; |
| 223 | } |
| 224 | |
| 225 | arrow::Result<PreparedStatementUpdate> ParseCommandPreparedStatementUpdate( |
| 226 | const google::protobuf::Any& any) { |