amazon-ion / ion-cli

Apache License 2.0
31 stars 15 forks source link

Use MultiGzDecoder to support multi-member gzip files #127

Closed nirosys closed 2 months ago

nirosys commented 2 months ago

Issue #, if available: #126

Description of changes:

This PR changes the GzDecoder used for decompressing gzip'd inputs to a MultiGzDecoder in order to handle multi-member gzip files.

Pre-PR (using homebrew'd ion-cli):

glitch@147dda5e5395 ~/C/ion-cli> ion dump user-data.ion.gz | ion beta count
1213

Post-PR:

glitch@147dda5e5395 ~/C/ion-cli> cargo run --release dump user-data.ion.gz | ion beta count
    Finished release [optimized] target(s) in 0.19s
     Running `target/release/ion dump user-data.ion.gz`
2541
glitch@147dda5e5395 ~/C/ion-cli> 

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.