This reverts commit 2b55fef7cc2a249d864ac26d85a4923313d96a59.
https://github.com/apache/iceberg/pull/11220 introduced a new bug instead of fixing the original issue, where it fixed the case where there is an exception in the GZIPOutputStream constructor, but if there is not, the stream will be closed when try-with-resources tries to close it and it will throw an exception.
This reverts commit 2b55fef7cc2a249d864ac26d85a4923313d96a59.
https://github.com/apache/iceberg/pull/11220 introduced a new bug instead of fixing the original issue, where it fixed the case where there is an exception in the GZIPOutputStream constructor, but if there is not, the stream will be closed when try-with-resources tries to close it and it will throw an exception.
The original issue will be fixed by https://github.com/apache/iceberg/pull/11609.