Skip to content

Commit

Permalink
fix(derive): Fjord brotli decompression (#298)
Browse files Browse the repository at this point in the history
## Overview

Fixes Fjord decompression by trimming the type byte off of the
compressed data prior to decompression.
  • Loading branch information
clabby authored Jun 21, 2024
1 parent 2bc5723 commit 0f5d9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/derive/src/stages/channel_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl BatchReader {
self.decompressed = decompress_to_vec_zlib(&data).ok()?;
} else if compression_type == CHANNEL_VERSION_BROTLI {
brotli_used = true;
self.decompressed = decompress_brotli(&data).ok()?;
self.decompressed = decompress_brotli(&data[1..]).ok()?;
} else {
tracing::error!(target: "batch-reader", "Unsupported compression type: {:x}, skipping batch", compression_type);
return None;
Expand Down

0 comments on commit 0f5d9ab

Please sign in to comment.