Skip to content

Commit

Permalink
fix broken pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Dec 10, 2024
1 parent e4ff444 commit 8066642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/adbc/driver/snowflake/bulk_ingestion.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (st *statement) ingestRecord(ctx context.Context) (nrows int64, err error)
r, w := io.Pipe()
bw := bufio.NewWriter(w)
g.Go(func() error {
defer r.Close()
defer w.Close()
defer bw.Flush()

err = writeParquet(schema, bw, recordCh, 0, parquetProps, arrowProps)
Expand Down

0 comments on commit 8066642

Please sign in to comment.