Add LZO compression support to gpfdist #1886
Replies: 1 comment 2 replies
|
Thanks for raising this question. We'd like to better understand your use case. Today, most modern data platforms have largely standardized on compression algorithms such as LZ4 and Zstandard (Zstd), which generally provide a better balance between compression ratio, decompression speed, and ecosystem support. As a result, they have become the default choice for many new deployments. LZO certainly played an important role historically, especially in some Hadoop-based ecosystems, but we're curious about the motivation for introducing LZO support in Apache Cloudberry today. Is your primary requirement:
Understanding the underlying use case would help us evaluate whether native LZO support is the right solution, or whether there might be a better alternative. We're always happy to discuss new features, but we'd first like to understand the problem we're trying to solve rather than focusing on a particular implementation. Lirong |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
This PR adds LZO compressed file format read/write support to the
gpfdistutility in Apache Cloudberry.Key Insight: LZO is specifically designed for speed over compression ratio. It's ideal for scenarios where decompression throughput matters more than storage savings - such as large-scale data loading into MPP databases like Cloudberry.
Core Features
Read Support (.lzo → Cloudberry):
Write Support (Cloudberry → .lzo):
Future Potential - Hadoop Ecosystem Integration:
Use case/motivation
Scenario 1: High-Volume Data Loading
LZO is a lightweight compression algorithm optimized for decompression speed (~500MB/s), making it ideal for scenarios requiring rapid data ingestion. Compared to BZip2 (~10MB/s) and GZIP (~100MB/s), LZO provides the fastest decompression while maintaining a reasonable compression ratio.
Scenario 2: Hadoop Ecosystem Integration
Many Hadoop ecosystem tools natively support LZO compression:
References
Technical Documentation
Cloudberry Documentation
Related Projects
Related issues
No response
Are you willing to submit a PR?
All reactions