lidavidm commented on PR #40311: URL: https://github.com/apache/arrow/pull/40311#issuecomment-2048539660
> I see that [`writeBindParameters`](https://github.com/erratic-pattern/arrow/blob/70e7ae5ed336c3670c4ea83cdb039cfafb80c833/go/arrow/flight/flightsql/client.go#L1214-L1235) is where the client needs to be updated, but it's not clear to me how I should change it to read a single message from the stream. I don't see a `NewRecordReader` similar to the `NewRecordWriter`. Should I call `pstream.Recv`? That would appear to give us a `PutResult` which I could then unwrap to get the encoded app_metadata and decode to `DoPutPreparedStatementResult`. Yes, I think `pstream.Recv` is the correct thing to do, though we have to handle EOF gracefully as well -- 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]
