Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Jul 7, 2023
1 parent 5d62d76 commit 6ee0f4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions cpp/src/arrow/flight/sql/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ arrow::Result<int64_t> FlightSqlClient::ExecuteUpdate(const FlightCallOptions& o
if (!metadata) return Status::IOError("Server did not send a response");

flight_sql_pb::DoPutUpdateResult update_result;
if (!update_result.ParseFromArray(metadata->data(), static_cast<int>(metadata->size()))) {
if (!update_result.ParseFromArray(metadata->data(),
static_cast<int>(metadata->size()))) {
return Status::Invalid("Unable to parse DoPutUpdateResult");
}

Expand All @@ -247,7 +248,8 @@ arrow::Result<int64_t> FlightSqlClient::ExecuteSubstraitUpdate(
ARROW_RETURN_NOT_OK(result.writer->Close());

flight_sql_pb::DoPutUpdateResult update_result;
if (!update_result.ParseFromArray(metadata->data(), static_cast<int>(metadata->size()))) {
if (!update_result.ParseFromArray(metadata->data(),
static_cast<int>(metadata->size()))) {
return Status::Invalid("Unable to parse DoPutUpdateResult");
}

Expand Down
7 changes: 4 additions & 3 deletions cpp/src/arrow/flight/sql/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,13 @@ class ARROW_FLIGHT_SQL_EXPORT FlightSqlClient {

protected:
virtual ::arrow::Result<FlightClient::DoPutResult> DoPut(const FlightCallOptions& options,
const FlightDescriptor& descriptor,
const std::shared_ptr<Schema>& schema) {
const FlightDescriptor& descriptor,
const std::shared_ptr<Schema>& schema) {
return impl_->DoPut(options, descriptor, schema);
}

virtual ::arrow::Result<std::unique_ptr<ResultStream>> DoAction(const FlightCallOptions& options, const Action& action) {
virtual ::arrow::Result<std::unique_ptr<ResultStream>> DoAction(
const FlightCallOptions& options, const Action& action) {
return impl_->DoAction(options, action);
}
};
Expand Down

0 comments on commit 6ee0f4e

Please sign in to comment.