lidavidm commented on code in PR #381:
URL: https://github.com/apache/arrow-adbc/pull/381#discussion_r1085736529
##########
go/adbc/driver/flightsql/flightsql_adbc.go:
##########
@@ -611,15 +655,23 @@ func (c *cnxn) Close() error {
//
// A partition can be retrieved by using ExecutePartitions on a statement.
func (c *cnxn) ReadPartition(ctx context.Context, serializedPartition []byte)
(rdr array.RecordReader, err error) {
- var endpoint flight.FlightEndpoint
- if err := proto.Unmarshal(serializedPartition, &endpoint); err != nil {
+ var info flight.FlightInfo
+ if err := proto.Unmarshal(serializedPartition, &info); err != nil {
return nil, adbc.Error{
Msg: err.Error(),
Code: adbc.StatusInvalidArgument,
}
}
- rdr, err = doGet(ctx, c.cl, &endpoint, c.clientCache)
+ // The driver only ever returns one endpoint.
Review Comment:
A serialized partition from this driver always has exactly 1 endpoint. But I
want to make the serialized partition contain the full FlightInfo otherwise
since the client might want to extract the other Flight-specific metadata there.
--
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]