tustvold commented on code in PR #4101:
URL: https://github.com/apache/arrow-rs/pull/4101#discussion_r1173018031
##########
arrow-flight/src/encode.rs:
##########
@@ -210,7 +228,13 @@ impl FlightDataEncoder {
/// Place the `FlightData` in the queue to send
fn queue_messages(&mut self, datas: impl IntoIterator<Item = FlightData>) {
- for data in datas {
+ let mut is_first = true;
+ for mut data in datas {
+ // The first message is the schema message need to set the
descriptor
+ if is_first {
+ data.flight_descriptor = self.descriptor.clone();
Review Comment:
I think the ticket calls for sending a separate descriptor message, not
overriding the first message
--
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]