---
title: "Introducing Velox: An open source unified execution engine"
description: "Velox 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."
url: "https://swe.quest/articles/introducing-velox-an-open-source-unified-execution-engine-d191dd46ed8f465e"
canonical: "https://engineering.fb.com/2023/03/09/open-source/velox-open-source-execution-engine/"
source: "Meta Engineering"
published: "2023-03-09"
difficulty: "hard"
kind: "Announcement"
reading_minutes: 8
tags: ["query-engines","analytics","c-cpp","performance","open-source"]
---

# Introducing Velox: An open source unified execution engine

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-03-09, 8 min read, Announcement. Original: [https://engineering.fb.com/2023/03/09/open-source/velox-open-source-execution-engine/](https://engineering.fb.com/2023/03/09/open-source/velox-open-source-execution-engine/)

## Summary

Velox 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.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Query engines](https://swe.quest/tags/query-engines.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- query execution engines
- columnar data formats
- SQL query plans ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

Velox, Presto, Prestissimo, Apache Spark, Gluten, TorchArrow, Apache Arrow, Substrait

## Related posts

- [Composable data management at Meta](https://swe.quest/articles/composable-data-management-at-meta-c95cc910c8dc9e8f.md): Meta Engineering · 2024-05-22 · Easy · 9 min read · Query engines, Analytics & OLAP, System design, Open source
  Meta has been decomposing its many monolithic data engines (ETL, interactive, streaming, ML preprocessing) into reusable components: language frontend, IR, optimizer, execution library and runtime.
- [Aligning Velox and Apache Arrow: Towards composable data management](https://swe.quest/articles/aligning-velox-and-apache-arrow-towards-composable-data-management-afb27bd747bab328.md): Meta Engineering · 2024-02-20 · Hard · 8 min read · Query engines, Analytics & OLAP, Data structures, Open source, C & C++
  Apache Arrow 15 adds three columnar layouts derived from Meta's Velox Vectors: StringView, ListView and Run-End-Encoding (REE).
- [ClickHouse and Parquet: A foundation for fast Lakehouse analytics](https://swe.quest/articles/clickhouse-and-parquet-a-foundation-for-fast-lakehouse-analytics-8735ae90a09a83f6.md): ClickHouse · 2025-05-07 · Medium · 22 min read · Query engines, Analytics & OLAP, Performance engineering, Concurrency
  ClickHouse queries Parquet files directly, without ingestion, through a format-specific reader that currently parses via Arrow and then converts into ClickHouse's in-memory format.
- [How we extended Apache DataFusion to execute one query across many machines](https://swe.quest/articles/how-we-extended-apache-datafusion-to-execute-one-query-across-many-machines-6519f2d407c939dd.md): Datadog Engineering · 2026-10-01 · Hard · 12 min read · Query engines, Distributed databases, Rust, Analytics & OLAP, Open source
  Datadog built Distributed DataFusion, an open source Rust framework that extends Apache DataFusion's physical execution model so a single interactive query can run across many machines while keeping latency roughly flat as data grows.
- [AI for Systems: Using LLMs to Optimize Database Query Execution](https://swe.quest/articles/ai-for-systems-using-llms-to-optimize-database-query-execution-4407ac9f4162928a.md): Together AI · 2026-04-03 · Hard · 6 min read · Query engines, LLMs, Performance engineering, Databases
  LLMs can act as semantic cardinality estimators that fix join-order mistakes in database physical plans without modifying the engine.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
