Skip to content

Commit

Permalink
Close recordwriter
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lubinitsky committed Oct 24, 2023
1 parent e80a8a9 commit 434d537
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/arrow/flight/flightsql/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ func (c *Client) ExecuteIngest(ctx context.Context, rdr array.RecordReader, reqO
}

wr = flight.NewRecordWriter(stream, ipc.WithAllocator(c.Alloc), ipc.WithSchema(rdr.Schema()))
defer wr.Close()

wr.SetFlightDescriptor(desc)

for rdr.Next() {
Expand Down

0 comments on commit 434d537

Please sign in to comment.