Pack a protobuf action and send it to the server.
| 66 | |
| 67 | // Pack a protobuf action and send it to the server. |
| 68 | arrow::Result<std::unique_ptr<ResultStream>> DoProtoAction( |
| 69 | FlightSqlClient* client, const FlightCallOptions& options, std::string action_type, |
| 70 | const google::protobuf::Message& action) { |
| 71 | Action packed_action; |
| 72 | RETURN_NOT_OK( |
| 73 | flight::internal::PackProtoAction(std::move(action_type), action, &packed_action)); |
| 74 | return client->DoAction(options, packed_action); |
| 75 | } |
| 76 | |
| 77 | void SetPlan(const SubstraitPlan& plan, flight_sql_pb::SubstraitPlan* pb_plan) { |
| 78 | pb_plan->set_plan(plan.plan); |
no test coverage detected