diff --git a/cpp/src/arrow/flight/sql/server.cc b/cpp/src/arrow/flight/sql/server.cc index fd917f7c9228f..11e9af0424387 100644 --- a/cpp/src/arrow/flight/sql/server.cc +++ b/cpp/src/arrow/flight/sql/server.cc @@ -831,11 +831,6 @@ Status FlightSqlServerBase::DoAction(const ServerCallContext& context, ARROW_ASSIGN_OR_RAISE(ActionEndTransactionRequest internal_command, ParseActionEndTransactionRequest(any)); ARROW_RETURN_NOT_OK(EndTransaction(context, internal_command)); - } else if (action.type == FlightSqlServerBase::kCloseSessionActionType.type) { - ARROW_ASSIGN_OR_RAISE(ActionCloseSessionRequest internal_command, - ParseActionCloseSessionRequest(any)); - ARROW_ASSIGN_OR_RAISE(CloseSessionResult result, CloseSession(context, internal_command)); - ARROW_ASSIGN_OR_RAISE(Result packed_result, PackActionResult(std::move(result))); } else if (action.type == ActionType::kSetSessionOptions.type) { std::string_view body(*action.body); ARROW_ASSIGN_OR_RAISE(auto request, SetSessionOptionsRequest::Deserialize(body)); diff --git a/cpp/src/arrow/flight/sql/server_session_middleware.h b/cpp/src/arrow/flight/sql/server_session_middleware.h index e9dbb6a19d92b..9ed626702a09e 100644 --- a/cpp/src/arrow/flight/sql/server_session_middleware.h +++ b/cpp/src/arrow/flight/sql/server_session_middleware.h @@ -28,6 +28,7 @@ #include "arrow/flight/server_middleware.h" #include "arrow/flight/sql/types.h" +#include "arrow/flight/types.h" namespace arrow { namespace flight {