alamb commented on code in PR #4797:
URL: https://github.com/apache/arrow-rs/pull/4797#discussion_r1329325829


##########
arrow-flight/src/sql/server.rs:
##########
@@ -965,3 +965,89 @@ fn decode_error_to_status(err: prost::DecodeError) -> 
Status {
 fn arrow_error_to_status(err: arrow_schema::ArrowError) -> Status {
     Status::internal(format!("{err:?}"))
 }
+
+/// A wrapper around [`Streaming<FlightData>`] that allows "peeking" at the
+/// message at the front of the stream without consuming it.
+/// This is needed because sometimes the first message in the stream will 
contain

Review Comment:
   👍 



##########
arrow-flight/src/sql/server.rs:
##########
@@ -965,3 +965,89 @@ fn decode_error_to_status(err: prost::DecodeError) -> 
Status {
 fn arrow_error_to_status(err: arrow_schema::ArrowError) -> Status {
     Status::internal(format!("{err:?}"))
 }
+
+/// A wrapper around [`Streaming<FlightData>`] that allows "peeking" at the
+/// message at the front of the stream without consuming it.
+/// This is needed because sometimes the first message in the stream will 
contain

Review Comment:
   👍 



-- 
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]

Reply via email to