cxzl25 opened a new pull request, #8396:
URL: https://github.com/apache/paimon/pull/8396
### Purpose
CompressUtils.gzipCompressFile was only used by a single Hive IT test
(HiveCatalogFormatTableITCaseBase) but was placed in paimon-core main,
unnecessarily inflating the production jar.
- Delete CompressUtils from paimon-core/src/main/java
- Inline the logic as a private static helper in the test base class
- Fix the resource leak in the process: the original implementation
only closed streams on the happy path; rewrite using try-with-resources
so streams are always closed even when an IOException is thrown
### Tests
GHA
--
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]