<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Velox</id>
	<title>Velox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Velox"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Velox&amp;action=history"/>
	<updated>2026-12-06T00:13:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Velox&amp;diff=214&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@7c9abaa</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Velox&amp;diff=214&amp;oldid=prev"/>
		<updated>2026-11-25T00:53:02Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@7c9abaa&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox software&lt;br /&gt;
| name                = Velox&lt;br /&gt;
| developer           = Meta, with contributors from other companies&lt;br /&gt;
| initial_release     = 2021 (GitHub repository created)&lt;br /&gt;
| written_in          = C++&lt;br /&gt;
| type                = Execution engine library&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://velox-lib.io velox-lib.io]&lt;br /&gt;
| repo                = [https://github.com/facebookincubator/velox github.com/facebookincubator/velox]&lt;br /&gt;
| related             = [[Apache Gluten]], [[Apache Spark]], [[Native execution engine (Spark)]], [[Apache DataFusion Comet]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-23|the facebookincubator/velox README, LICENSE, repository metadata and tags, the VLDB 2022 Velox paper, Meta&amp;#039;s &amp;quot;Introducing Velox&amp;quot; post, the apache/gluten README (main and v1.7.0) and Velox getting-started guide at v1.7.0, and the prestodb/presto presto-native-execution README}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Velox&amp;#039;&amp;#039;&amp;#039; is an open source C++ library that provides the execution layer of a data processing engine: columnar vectors, vectorized expression evaluation, functions and relational operators, which other systems embed instead of writing their own.&amp;lt;ref name=&amp;quot;readme&amp;quot;&amp;gt;{{Cite web |url=https://github.com/facebookincubator/velox/blob/main/README.md |title=Velox README |publisher=GitHub |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Meta created Velox, and it is developed with IBM/Ahana, Intel, Voltron Data, Microsoft, ByteDance and other companies under the Apache License 2.0.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt; For [[Apache Spark]], Velox is one of the two native backends of [[Apache Gluten]], a plugin that offloads Spark SQL execution from the JVM to native code.&amp;lt;ref name=&amp;quot;gluten&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/gluten/blob/v1.7.0/README.md |title=Apache Gluten README (v1.7.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What does Velox provide? ==&lt;br /&gt;
Velox takes a fully optimized query plan as input and runs it. It does not include a SQL parser, a DataFrame layer or a query optimizer, so it is meant for developers who build or speed up engines, not for end users.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Velox README lists these components:&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Type&amp;#039;&amp;#039;&amp;#039;: a type system with scalar, complex and nested types such as structs, maps and arrays.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Vector&amp;#039;&amp;#039;&amp;#039;: an Arrow-compatible columnar memory layout with flat, dictionary, constant and sequence (run-length) encodings, lazy materialization and out-of-order writes.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Expression evaluation&amp;#039;&amp;#039;&amp;#039;: a vectorized engine that evaluates expressions on vector-encoded data.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039;: vectorized scalar, aggregate and window functions that follow Presto and Spark semantics.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Operators&amp;#039;&amp;#039;&amp;#039;: scans, writes, projections, filters, grouping, ordering, shuffle and exchange, hash, merge and nested loop joins, unnest and others.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;I/O&amp;#039;&amp;#039;&amp;#039;: a connector interface for data sources and sinks, with ORC/DWRF, Parquet and Nimble file formats and storage adapters for S3, HDFS, GCS, ABFS and local files.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Network serializers&amp;#039;&amp;#039;&amp;#039;: wire formats including PrestoPage and Spark&amp;#039;s UnsafeRow.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Resource management&amp;#039;&amp;#039;&amp;#039;: memory arenas, buffer management, tasks, drivers, thread pools, spilling and caching.&lt;br /&gt;
&lt;br /&gt;
The Velox source tree keeps Spark and Presto function sets in separate directories, &amp;lt;code&amp;gt;velox/functions/sparksql&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;velox/functions/prestosql&amp;lt;/code&amp;gt;, so that each engine gets its own SQL dialect behavior.&amp;lt;ref name=&amp;quot;funcs&amp;quot;&amp;gt;{{Cite web |url=https://github.com/facebookincubator/velox/tree/main/velox/functions |title=velox/functions |publisher=GitHub |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Developers can add their own types, functions, operators, file formats, storage adapters and serializers.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How is Velox used with Apache Spark? ==&lt;br /&gt;
Velox runs Spark SQL through Apache Gluten. Gluten converts Spark&amp;#039;s physical plan into a Substrait plan, passes it over JNI to a native backend, which builds and runs native operators, and returns results to Spark as columnar batches. Operators that the backend does not support fall back to vanilla Spark, with columnar-to-row and row-to-columnar conversions between them.&amp;lt;ref name=&amp;quot;gluten&amp;quot; /&amp;gt; Gluten v1.7.0 supports two backends, ClickHouse and Velox, and Spark 3.3, 3.4, 3.5, 4.0 and 4.1.&amp;lt;ref name=&amp;quot;gluten&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A Spark application turns on the Gluten Velox backend with the Gluten plugin, off-heap memory and Gluten&amp;#039;s columnar shuffle manager. The configuration below is taken from the Gluten v1.7.0 Velox guide; the off-heap size is an example value.&amp;lt;ref name=&amp;quot;glutenvelox&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/gluten/blob/v1.7.0/docs/get-started/Velox.md |title=Gluten Velox backend getting started (v1.7.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
spark.plugins            org.apache.gluten.GlutenPlugin&lt;br /&gt;
spark.memory.offHeap.enabled  true&lt;br /&gt;
spark.memory.offHeap.size     20g&lt;br /&gt;
spark.shuffle.manager    org.apache.spark.shuffle.sort.ColumnarShuffleManager&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Gluten&amp;#039;s main branch also documents an experimental GPU mode in which Velox plan nodes are replaced by operators built on NVIDIA cuDF; see [[GPU acceleration in Spark]].&amp;lt;ref name=&amp;quot;glutengpu&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/gluten/blob/main/docs/backends/velox/get-started/VeloxGPU.md |title=GPU Acceleration in Velox/Gluten (VeloxGPU.md, main branch) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; For other native engines for Spark, such as [[Apache DataFusion Comet]], see [[Native execution engine (Spark)]].&lt;br /&gt;
&lt;br /&gt;
== Which other engines use Velox? ==&lt;br /&gt;
Prestissimo, the native worker of Presto in the &amp;lt;code&amp;gt;presto-native-execution&amp;lt;/code&amp;gt; directory of the prestodb/presto repository, implements the Presto worker REST API in C++ on top of Velox.&amp;lt;ref name=&amp;quot;prestissimo&amp;quot;&amp;gt;{{Cite web |url=https://github.com/prestodb/presto/blob/master/presto-native-execution/README.md |title=Prestissimo: C++ Presto Worker Implementation using Velox |publisher=GitHub |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Meta&amp;#039;s March 2023 post describes Prestissimo as replacing Presto Java workers with a Velox-based C++ process, and names Spark (through Gluten) and TorchArrow, a PyTorch data preprocessing library, as the other main integrations at the time.&amp;lt;ref name=&amp;quot;meta&amp;quot;&amp;gt;{{Cite web |url=https://engineering.fb.com/2023/03/09/open-source/velox-open-source-execution-engine/ |title=Introducing Velox: An open source unified execution engine |publisher=Meta |date=2023-03-09 |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is the history of Velox? ==&lt;br /&gt;
The facebookincubator/velox repository on GitHub was created on 23 July 2021.&amp;lt;ref name=&amp;quot;repo&amp;quot;&amp;gt;{{Cite web |url=https://github.com/facebookincubator/velox |title=facebookincubator/velox |publisher=GitHub |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Meta engineers described the design in the paper &amp;quot;Velox: Meta&amp;#039;s Unified Execution Engine&amp;quot;, published in the Proceedings of the VLDB Endowment, volume 15 (2022).&amp;lt;ref name=&amp;quot;paper&amp;quot;&amp;gt;{{Cite web |url=https://www.vldb.org/pvldb/vol15/p3372-pedreira.pdf |title=Velox: Meta&amp;#039;s Unified Execution Engine |publisher=VLDB Endowment |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Meta&amp;#039;s 2023 post states that Velox was already being integrated with more than a dozen data systems at Meta, including Presto and Spark.&amp;lt;ref name=&amp;quot;meta&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Velox does not publish GitHub releases with version numbers; its repository uses date-based tags such as &amp;lt;code&amp;gt;v2026.10.23.00&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;tags&amp;quot;&amp;gt;{{Cite web |url=https://github.com/facebookincubator/velox/tags |title=Tags, facebookincubator/velox |publisher=GitHub |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Velox requires at least GCC 11 or Clang 15 to build.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How does Velox differ from a query engine? ==&lt;br /&gt;
Velox is a library, not a complete query engine. A system such as Spark or Presto keeps its own SQL parsing, optimization, scheduling and cluster management, and hands Velox the plan fragment to run on one machine.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;meta&amp;quot; /&amp;gt; Without a plugin such as Gluten, Spark runs plans on its own JVM execution layer, described in [[Project Tungsten]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Apache Gluten]]&lt;br /&gt;
* [[Native execution engine (Spark)]]&lt;br /&gt;
* [[Apache DataFusion Comet]]&lt;br /&gt;
* [[GPU acceleration in Spark]]&lt;br /&gt;
* [[Project Tungsten]]&lt;br /&gt;
* [[Apache Spark]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Query engines]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>