Aligning Velox and Apache Arrow: Towards composable data management
Apache Arrow 15 adds three columnar layouts derived from Meta's Velox Vectors: StringView, ListView and Run-End-Encoding (REE). The goal is zero-copy interchange between Velox and the wider Arrow ecosystem. StringView uses 16-byte view objects that inline strings up to 12 bytes and keep a 4-byte prefix otherwise, which enables fail-fast comparisons, zero-copy trim/substr and out-of-order writes. ListView stores both lengths and offsets so containers can be written out of order for vectorized conditionals and sliced zero-copy. REE stores run end offsets rather than run lengths for better random access, and it also covers constant encoding.
Related posts
- Composable data management at Meta
Meta Engineering easyNoviceMeta has been decomposing its many monolithic data engines (ETL, interactive, streaming, ML preprocessing) into reusable components: language frontend, IR, optimizer, execution library and runtime. Velox, its open-source engine- and dialect-agnostic execution library, is the centerpiece. It uses columnar/vectorized execution, compressed execution via encodings, lazy materialization and adaptive filter/join ordering, and has delivered 3-10x efficiency gains in Presto (Prestissimo) and about 3x in Spark via Gluten. To restore interoperability, Meta upstreamed StringView, ListView and Run-End-Encoding into Apache Arrow. Next steps are the Nimble file format for wide AI/ML tables and hardware-accelerated data systems.
- Introducing Velox: An open source unified execution engine
Meta Engineering hardMasterVelox is Meta's open source C++ execution engine that unifies the data-plane components (expression evaluation, aggregation, joins, sorting, I/O, resource management) shared by engines like Presto, Spark and PyTorch's TorchArrow. It takes an optimized plan as input and runs it on a single host. It uses an Arrow-compatible columnar vector layout with multiple encodings, vectorized expression evaluation with dictionary peeling and common subexpression elimination, and runtime optimizations such as dynamic filter pushdown and adaptive prefetching. Replacing Presto Java workers with the Velox-based Prestissimo gave up to an order of magnitude speedup on CPU-bound TPC-H queries and 6-7x average speedups on production interactive workloads. Spark integrates Velox through Intel's Gluten via JNI using Arrow and Substrait.
- Ducks in a Column
DuckDB mediumAdeptDuckDB stores data by column and processes it in vectors of 2,048 values, which drives its compression, projection pushdown and aggregation speed. A tour built on a duck-sightings dataset shows querying CSV, Parquet, S3 and Hive-partitioned files in place (with zonemap row-group skipping and CSV type sniffing), column-level friendly SQL (EXCLUDE, REPLACE, COLUMNS() with regex or lambdas, FROM-first, STRUCT unpacking, SUMMARIZE), and aggregation shortcuts such as GROUP BY ALL, FILTER, arg_max, PIVOT/UNPIVOT and approximate aggregates. Window functions, QUALIFY, ASOF joins for aligning mismatched time series, and list aggregation round out the examples.
- Litestream v0.5.0 is Here
Fly.io mediumAdeptLitestream v0.5.0 replaces WAL-segment backups with the LTX file format from LiteFS, enabling efficient point-in-time recovery through hierarchical compaction (30-second, 5-minute and hourly levels), so a restore typically needs only a dozen or so files. The 'generations' concept is gone in favor of monotonically increasing transaction IDs, LTX now compresses per page with a trailing index for page-granular access, and CGO is dropped by switching to modernc.org/sqlite. Upgrading is drop-in with a backwards-compatible config, but v0.5.0 cannot restore old v0.3.x WAL segments and allows only one replica destination per database. The release also adds a NATS JetStream replica type, and a VFS for instant read replicas is planned next.
- One Driver, One Format, Every Language: ADBC
ClickHouse mediumAdept
ClickHouse released an official ADBC (Arrow Database Connectivity) driver, written in Rust, that returns query results as Apache Arrow end to end with no row-oriented conversion or staging step. It connects over ClickHouse's HTTP interface with TLS, installs via Columnar's `dbc` package manager, and was built mainly to support dbt Fusion. It also brings ClickHouse to languages that lack an official client, such as Ruby, R and C. ADBC fits Arrow-native DataFrame workflows, AI agent pipelines and bulk ingest, while official clients remain better for full type-system coverage, async APIs and row-level or ORM work. A Ruby walkthrough builds a page-view pipeline using bulk Arrow RecordBatch ingest, a SummingMergeTree table and a materialized view.