zeroshade commented on code in PR #666:
URL: https://github.com/apache/iceberg-go/pull/666#discussion_r2666495956
##########
catalog/internal/utils.go:
##########
@@ -52,18 +54,14 @@ func WriteTableMetadata(metadata table.Metadata, fs
icebergio.WriteFileIO, loc s
case table.MetadataCompressionCodecGzip:
compressWriter = gzip.NewWriter(out)
writer = compressWriter
+ defer internal.CheckedClose(compressWriter, &err)
default:
return fmt.Errorf("unsupported write metadata compression
codec: %s", compression)
Review Comment:
is the new version pretty much what you were thinking?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]