slfan1989 opened a new issue, #621:
URL: https://github.com/apache/hudi-rs/issues/621
### Description
The HFile compression module currently implements codec ID parsing and
decompression behavior in `crates/core/src/hfile/compression.rs`, but it does
not have dedicated unit tests.
Some behavior is exercised indirectly through HFile reader tests, but direct
unit tests would make the supported and unsupported codec behavior explicit
and help prevent regressions.
### Proposed test coverage
Add unit tests for:
- known codec ID mappings (`0..=6`)
- unknown codec IDs returning `UnsupportedCompression`
- `None` compression returning the original bytes
- successful GZIP decompression
- invalid GZIP payloads returning a decompression error
- unsupported codecs returning clear errors:
- LZO
- Snappy
- LZ4
- BZIP2
- ZSTD
--
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]