Skip to content

Commit 668b9b7

Browse files
authored
chore: enable Lz4Raw for parquet reading compatibility (#17959)
Re-enable Lz4Raw compression support in the reading path to maintain compatibility with existing objects that were compacted with parquet Lz4Raw. Note: The writing path remains unchanged - no new Lz4Raw compressed data will be generated.
1 parent 2d9e579 commit 668b9b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query/storages/common/table_meta/src/table/table_compression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl From<meta::Compression> for ParquetCompression {
9292
meta::Compression::Snappy => ParquetCompression::SNAPPY,
9393
meta::Compression::Zstd => ParquetCompression::ZSTD(ZstdLevel::default()),
9494
meta::Compression::None => ParquetCompression::UNCOMPRESSED,
95-
meta::Compression::Lz4 => panic!("deprecated lz4"),
95+
meta::Compression::Lz4 => ParquetCompression::LZ4_RAW,
9696
meta::Compression::Gzip => ParquetCompression::GZIP(GzipLevel::default()),
9797
}
9898
}

0 commit comments

Comments
 (0)