Skip to content

Commit

Permalink
Merge pull request #9111 [BEAM-7747] Propertly close file handle in F…
Browse files Browse the repository at this point in the history
…astAvroSink.

[BEAM-7747] Close the file handle owned by fastavro.write.Writer in _FastAvroSink.close().
  • Loading branch information
robertwb committed Jul 24, 2019
2 parents 4935d0c + 2f239e4 commit 09fe498
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdks/python/apache_beam/io/avroio.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,3 +629,4 @@ def write_record(self, writer, value):

def close(self, writer):
writer.flush()
writer.fo.close()

0 comments on commit 09fe498

Please sign in to comment.