Add flag to support gzip compressed messages #179
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Gzip decompression flag
Summary
This pull request introduces support for ingesting gzip-compressed messages in the
kafka-delta-ingest
project. This new functionality allows users to handle gzip-compressed Kafka messages, decompressing them before further processing and ingestion into Delta Lake.Changes
--decompress_gzip
flag to the command-line options.MessageDeserializerFactory
and related deserialization logic to support gzip decompression.main.rs
to handle the new command-line argument and pass it to the deserialization process.lib.rs
to integrate the new gzip decompression functionality.Notes
However since this happens to older commits, it seems to not be caused by this new functionality.
Usage
Use the
--decompress_gzip
flag to enable gzip decompression. Ensure that the Kafka producer is configured to produce gzip-compressed messages.This command enables gzip decompression for Kafka messages ingested into the Delta Lake table.
Conclusion
This enhancement allows for more flexible and efficient processing of Kafka messages, particularly in environments where data compression is essential. Please review the changes and let me know if any adjustments or additional tests are required. Thank you for considering this contribution.