Abstract
Modern data lakes utilize columnar storage formats like Apache Parquet for high-performance analytical scans. However, these formats typically treat columns as independent entities, failing to exploit mathematical dependencies between them (e.g., $Total = Regular + Overtime$). We introduce Virtual, an open-source framework that identifies these "hidden" correlations to eliminate redundant data. By replacing physical columns with functional definitions and auxiliary metadata, Virtual achieves lossless compression that is transparent to existing SQL workflows.
Introduction
Data lakes increasingly rely on columnar formats such as Parquet and ORC to enable efficient data processing. While these formats employ lightweight encoding techniques like dictionary or delta encoding, they remain largely "data agnostic" regarding inter-column relationships. In many real-world datasets, columns are mathematically related; for instance, a Total_Earnings column in a payroll database is often a simple sum of other fields. Storing such redundant information wastes significant storage space.
While manual "views" can mitigate this, managing them across thousands of tables is impractical. General-purpose compression algorithms like Zstd can capture some patterns but often at the cost of significantly reduced decompression throughput. Virtual addresses this by automating the discovery and exploitation of inter-column correlations, offering a "lossless" compression boost without breaking standard SQL execution.
Methodology: The Virtual Framework
The Virtual system is composed of four primary components designed to automate the lifecycle of column virtualization.
1. FunctionDriller and 2. Optimizer
The process begins with FunctionDriller, which scans datasets for "sparse functions"—mathematical relationships where a target column can be predicted by a small subset of others. It supports linear functions and a specialized $k$-regression technique for complex, multi-modal relationships.
Following discovery, the Optimizer evaluates the candidate functions. Since some functions may conflict or offer negligible storage benefits, the Optimizer selects the most efficient subset to maximize overall savings while avoiding circular dependencies.
3. Compressor and 4. QueryRewriter
The Compressor implements the physical reduction by dropping redundant columns. To ensure lossless reconstruction, it stores minimal auxiliary data, including offsets for prediction errors, null-value trackers, and outlier storage.
Finally, the QueryRewriter provides a transparent interface for users. It intercepts SQL queries and replaces virtualized column references with their functional definitions (e.g., AVG(Total) becomes AVG(Regular + Overtime)) before execution by engines like DuckDB.
Evaluation and Results
The efficacy of Virtual was demonstrated using real-world and benchmark datasets:
- Broome County Annual Employee Earnings: A dataset used to showcase strict linear dependencies in financial data.
- TPC-H lineitem: A standard benchmark used to validate the system's performance on common analytical warehouse schemas.
Key results indicate that Virtual significantly reduces file sizes compared to standard Parquet. Performance overhead is minimal; in tests, query rewriting took less than 1 ms, and execution times remained competitive, proving that on-the-fly computation is a viable alternative to disk I/O for redundant data.
Discussion and Future Work
Virtual highlights the "hidden treasure" of column correlation as a new frontier for data lake efficiency. By focusing on sparse functions, the system maintains high scan performance without excessive query complexity. Its lossless nature, achieved through auxiliary "delta" storage, distinguishes it from approximate ML-based storage solutions.
Future development aims to expand the variety of supported functions to include non-linear and categorical dependencies. Additionally, while currently compatible with DuckDB and Pandas, broader integration with engines like Apache Spark or Trino will be essential for enterprise-scale adoption.
Summary updated