Skip to content

Commit

Permalink
DX-61034: Arrow changes from apacheGH-34865 PR
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelorddremio committed Feb 21, 2024
1 parent 14c0660 commit ae24499
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cpp/src/arrow/flight/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,20 @@ class ARROW_FLIGHT_EXPORT FlightClient {
return DoExchange({}, descriptor);
}

ARROW_DEPRECATED("Deprecated in 8.0.0. Use Result-returning overload instead.")
Status DoExchange(const FlightCallOptions& options, const FlightDescriptor& descriptor,
std::unique_ptr<FlightStreamWriter>* writer,
std::unique_ptr<FlightStreamReader>* reader);
ARROW_DEPRECATED("Deprecated in 8.0.0. Use Result-returning overload instead.")
Status DoExchange(const FlightDescriptor& descriptor,
std::unique_ptr<FlightStreamWriter>* writer,
std::unique_ptr<FlightStreamReader>* reader) {
ARROW_ASSIGN_OR_RAISE(auto output, DoExchange({}, descriptor));
*writer = std::move(output.writer);
*reader = std::move(output.reader);
return Status::OK();
}

/// \brief Set server session option(s) by name/value. Sessions are generally
/// persisted via HTTP cookies.
/// \param[in] options Per-RPC options
Expand Down

0 comments on commit ae24499

Please sign in to comment.