Velox is a C++ library of reusable query execution components for analytical engines. Integrators embed it into batch, interactive, streaming, and ML data systems rather than running it standalone.
Overview
Velox is an open source C++ execution engine shipped as a library. It provides modular pieces for analytical data management systems, including batch, interactive, stream processing, and AI/ML workloads. It expects an already optimized query plan as input and does not include SQL parsing, dataframe APIs, or a cost-based optimizer, so engine developers rather than end users are the typical audience.
Core modules include a generic type system, Arrow-compatible columnar vectors with multiple encodings, a vectorized expression evaluator, scalar and aggregate functions following Presto and Spark semantics, relational operators, connector-based I/O for formats such as ORC, Parquet, and Nimble and stores such as S3, HDFS, GCS, and local files, network serializers, and resource management for memory, tasks, and thread pools.
Extension points cover custom types, functions, operators, file formats, storage adapters, and wire protocols. Downstream projects cited include Presto C++, Apache Gluten for Spark, and GPU acceleration experiments with cuDF. Velox is developed in partnership with multiple companies after originating at Meta.
Building targets Linux and macOS with GCC 11+ or Clang 15+, with setup scripts for Ubuntu, CentOS, and macOS and optional docker-compose builds. CPU targets include x86 AVX or SSE baselines and Arm variants.
Key features
- Arrow-compatible columnar vectors
- Vectorized expression evaluation
- Presto and Spark function sets
- Relational operators and joins
- Connector-based file and object I/O
- ORC, Parquet, and Nimble formats
- Network page serializers
- Memory and thread pool management
Use cases
- Embedding in SQL query engines
- Accelerating Spark via Gluten
- Shared runtime for Presto C++
- Analytical batch and stream systems
- ML data preprocessing pipelines