lewiszlw commented on code in PR #8916:
URL: https://github.com/apache/arrow-rs/pull/8916#discussion_r2654697814
##########
arrow-flight/src/sql/client.rs:
##########
@@ -680,99 +584,10 @@ impl PreparedStatement<Channel> {
}
}
-fn decode_error_to_arrow_error(err: prost::DecodeError) -> ArrowError {
- ArrowError::IpcError(err.to_string())
-}
-
-fn status_to_arrow_error(status: tonic::Status) -> ArrowError {
- ArrowError::IpcError(format!("{status:?}"))
-}
-
-fn flight_error_to_arrow_error(err: FlightError) -> ArrowError {
- match err {
- FlightError::Arrow(e) => e,
- e => ArrowError::ExternalError(Box::new(e)),
- }
-}
-
/// A polymorphic structure to natively represent different types of data
contained in `FlightData`
pub enum ArrowFlightData {
/// A record batch
RecordBatch(RecordBatch),
/// A schema
Schema(Schema),
}
-
-/// Extract `Schema` or `RecordBatch`es from the `FlightData` wire
representation
-pub fn arrow_data_from_flight_data(
Review Comment:
Added back.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]