<?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=Apache_DataFusion_Comet</id>
	<title>Apache DataFusion Comet - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Apache_DataFusion_Comet"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Apache_DataFusion_Comet&amp;action=history"/>
	<updated>2026-12-06T00:08:06Z</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=Apache_DataFusion_Comet&amp;diff=121&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=Apache_DataFusion_Comet&amp;diff=121&amp;oldid=prev"/>
		<updated>2026-11-25T00:52:33Z</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                = Apache DataFusion Comet&lt;br /&gt;
| also_known_as       = Comet&lt;br /&gt;
| developer           = Apache Software Foundation (sub-project of Apache DataFusion); originally developed at Apple&lt;br /&gt;
| initial_release     = 0.1.0 (July 2024); 1.0.0 on 2026-08-07&lt;br /&gt;
| latest_release      = 1.2.0&lt;br /&gt;
| latest_release_date = 2026-11-03&lt;br /&gt;
| written_in          = Rust, Scala, Java&lt;br /&gt;
| type                = Native execution plugin for Apache Spark&lt;br /&gt;
| license             = Apache License 2.0&lt;br /&gt;
| website             = [https://datafusion.apache.org/comet datafusion.apache.org/comet]&lt;br /&gt;
| repo                = [https://github.com/apache/datafusion-comet github.com/apache/datafusion-comet]&lt;br /&gt;
| related             = [[Apache Spark]], [[Apache Gluten]], [[Native execution engine (Spark)]], [[Apache Iceberg]], [[Project Tungsten]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-23|the GitHub releases and tags of apache/datafusion-comet (1.0.0, 1.1.0, 1.2.0), README.md and the user guide at the 1.2.0 tag (installation, Spark version compatibility, configs, operators, Iceberg, Delta Lake, memory tuning), the Comet versus Gluten comparison page, the top-level project proposal page and issue #6793, and the Apache Arrow blog post of 2024-03-06 announcing the donation}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Apache DataFusion Comet&amp;#039;&amp;#039;&amp;#039; (usually just &amp;#039;&amp;#039;&amp;#039;Comet&amp;#039;&amp;#039;&amp;#039;) is an open source plugin for [[Apache Spark]] that replaces supported Spark SQL operators and expressions with implementations that process Apache Arrow columnar data, most of them native Rust code built on the Apache DataFusion query engine.&amp;lt;ref name=&amp;quot;readme&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/README.md |title=Apache DataFusion Comet README (1.2.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Spark still parses, optimizes and schedules the query, and existing Spark SQL, DataFrame and PySpark code runs without changes.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt; Comet is a sub-project of Apache DataFusion and one of the [[Native execution engine (Spark)|native execution engines]] available for Spark.&amp;lt;ref name=&amp;quot;tlp&amp;quot;&amp;gt;{{Cite web |url=https://datafusion.apache.org/comet/about/top_level_project_proposal.html |title=Proposal to Establish Apache Comet as a Top-Level Project |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What is Apache DataFusion Comet? ==&lt;br /&gt;
Apache DataFusion Comet is a Spark plugin that translates a Spark physical plan into a serialized form and passes it to native code for execution. Comet uses its own Protocol Buffers format for the plan, and execution is delegated to Apache DataFusion, a query engine written in Rust.&amp;lt;ref name=&amp;quot;cmp&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/docs/source/about/gluten_comparison.md |title=Comparison of Comet and Gluten |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Unlike [[Apache Gluten]], which supports several native backends, Comet is built for one engine and does not plan to support others.&amp;lt;ref name=&amp;quot;cmp&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apache DataFusion Comet keeps data in Arrow columnar format through operators, expressions, shuffle and broadcast. Inside that pipeline, operators and expressions run either as Rust code through DataFusion or as JVM code that works directly on Arrow batches.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History and status ==&lt;br /&gt;
Apache DataFusion Comet was originally implemented at Apple. The Apache Arrow project management committee announced the donation of Comet to Apache Arrow on 2024-03-06; at that time DataFusion was itself part of Arrow.&amp;lt;ref name=&amp;quot;donation&amp;quot;&amp;gt;{{Cite web |url=https://arrow.apache.org/blog/2024/03/06/comet-donation/ |title=Announcing Apache Arrow DataFusion Comet |publisher=Apache Arrow |date=2024-03-06 |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; When DataFusion became a top-level ASF project in April 2024, Comet became a sub-project of Apache DataFusion.&amp;lt;ref name=&amp;quot;tlp&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apache DataFusion Comet published its first release, 0.1.0, in July 2024. Version 1.0.0 followed on 2026-08-07 and 1.1.0 on 2026-10-06.&amp;lt;ref name=&amp;quot;tlp&amp;quot; /&amp;gt; The latest release is 1.2.0, published on GitHub on 2026-11-03.&amp;lt;ref name=&amp;quot;rel120&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/releases/tag/1.2.0 |title=Release 1.2.0 |publisher=Apache Software Foundation (GitHub) |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Comet community is preparing to make Comet a separate top-level ASF project named &amp;quot;Apache Comet&amp;quot;. As of 2026-11-23 this is a proposal: the tracking issue is open, the board resolution has not been adopted, and the plan lists the 2026-12-16 ASF board meeting as the target.&amp;lt;ref name=&amp;quot;tlp&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;epic&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/issues/6793 |title=[EPIC] Promote Comet to a top level Apache project (#6793) |publisher=Apache Software Foundation (GitHub) |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Which Spark versions does Comet support? ==&lt;br /&gt;
Apache DataFusion Comet 1.2.0 supports Apache Spark 3.4, 3.5, 4.0, 4.1 and 4.2. The installation guide lists the tested patch versions 3.4.3, 3.5.9, 4.0.4, 4.1.3 and 4.2.0.&amp;lt;ref name=&amp;quot;install&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/docs/source/user-guide/latest/installation.md |title=Installing DataFusion Comet (1.2.0) |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Spark 4.3 is not on the list. Comet requires JDK 17 or later; JDK 11 support ended with the 1.1.0 release. Spark 3.4 support has been deprecated since 1.0.0 and is planned for removal.&amp;lt;ref name=&amp;quot;install&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The installation guide also notes that Comet may not fully work with proprietary forks of Apache Spark, such as the Spark versions offered by cloud service providers.&amp;lt;ref name=&amp;quot;install&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How does Comet work with Apache Spark? ==&lt;br /&gt;
Apache DataFusion Comet is added to the Spark class path as a JAR built for a given Spark and Scala version, and enabled through Spark&amp;#039;s plugin interface. A typical configuration from the project README:&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$SPARK_HOME/bin/spark-shell \&lt;br /&gt;
    --jars $COMET_JAR \&lt;br /&gt;
    --conf spark.driver.extraClassPath=$COMET_JAR \&lt;br /&gt;
    --conf spark.executor.extraClassPath=$COMET_JAR \&lt;br /&gt;
    --conf spark.plugins=org.apache.spark.CometPlugin \&lt;br /&gt;
    --conf spark.shuffle.manager=org.apache.spark.sql.comet.execution.shuffle.CometShuffleManager \&lt;br /&gt;
    --conf spark.comet.explain.fallback.enabled=true \&lt;br /&gt;
    --conf spark.memory.offHeap.enabled=true \&lt;br /&gt;
    --conf spark.memory.offHeap.size=4g \&lt;br /&gt;
    --conf spark.executor.memoryOverhead=2g&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apache DataFusion Comet has two main switches. &amp;lt;code&amp;gt;spark.comet.enabled&amp;lt;/code&amp;gt; (default true) turns the extension on, and &amp;lt;code&amp;gt;spark.comet.exec.enabled&amp;lt;/code&amp;gt; (default true) turns on native execution; both must be on for operators to run natively.&amp;lt;ref name=&amp;quot;configs&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/docs/source/user-guide/latest/configs.md |title=Comet Configuration Settings (1.2.0) |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Comet shuffle is controlled by &amp;lt;code&amp;gt;spark.comet.shuffle.enabled&amp;lt;/code&amp;gt;, which requires &amp;lt;code&amp;gt;spark.shuffle.manager&amp;lt;/code&amp;gt; to be set to &amp;lt;code&amp;gt;CometShuffleManager&amp;lt;/code&amp;gt; or, for Apache Celeborn, &amp;lt;code&amp;gt;CometCelebornShuffleManager&amp;lt;/code&amp;gt;. Shuffle data is written as Arrow IPC and compressed with lz4 by default (&amp;lt;code&amp;gt;spark.comet.shuffle.compression.codec&amp;lt;/code&amp;gt;, which also accepts zstd and snappy).&amp;lt;ref name=&amp;quot;configs&amp;quot; /&amp;gt; The native shuffle supports hash and range partitioning, with a JVM path for partition key types that the native code does not handle.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apache DataFusion Comet shares Spark&amp;#039;s off-heap memory pool, sized by &amp;lt;code&amp;gt;spark.memory.offHeap.size&amp;lt;/code&amp;gt;, as a budget for its reservations. Native memory that the pools do not track has to fit in &amp;lt;code&amp;gt;spark.executor.memoryOverhead&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;memory&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/docs/source/user-guide/latest/tuning/memory.md |title=Comet Memory Tuning (1.2.0) |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; The default pool type, set by &amp;lt;code&amp;gt;spark.comet.exec.memoryPool&amp;lt;/code&amp;gt;, is &amp;lt;code&amp;gt;fair_unified&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;configs&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What runs natively and what falls back? ==&lt;br /&gt;
Apache DataFusion Comet runs whole subtrees of native operators together. If a query stage contains an operator that Comet does not support, that stage falls back to regular Spark execution, and the operator reference states that results are unaffected.&amp;lt;ref name=&amp;quot;ops&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/docs/source/user-guide/latest/operators.md |title=Spark Operator Support (1.2.0) |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Each supported operator can be turned off with &amp;lt;code&amp;gt;spark.comet.exec.OPERATOR.enabled=false&amp;lt;/code&amp;gt;, for example &amp;lt;code&amp;gt;spark.comet.exec.sort.enabled=false&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;ops&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Natively supported work in Comet 1.2.0 includes Parquet scans, projections and filters, hash aggregates, hash, sort-merge and broadcast joins, and shuffle, plus hundreds of Spark expressions in the math, string, date and time, array, map, JSON, hash and predicate categories.&amp;lt;ref name=&amp;quot;readme&amp;quot; /&amp;gt; Structured Streaming operators, Cartesian joins, pickled (non-Arrow) Python UDFs and typed Dataset operators such as &amp;lt;code&amp;gt;map&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;groupByKey&amp;lt;/code&amp;gt; fall back to Spark and are not on the roadmap.&amp;lt;ref name=&amp;quot;ops&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apache DataFusion Comet can report why a stage did not run natively. &amp;lt;code&amp;gt;spark.comet.explain.fallback.enabled&amp;lt;/code&amp;gt; (default false) logs the reasons, and the extended explain format &amp;lt;code&amp;gt;spark.comet.explain.format&amp;lt;/code&amp;gt; (default &amp;lt;code&amp;gt;verbose&amp;lt;/code&amp;gt;) annotates the plan with fallback reasons and a summary of how much of it was accelerated.&amp;lt;ref name=&amp;quot;configs&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Does Comet support Apache Iceberg and Delta Lake? ==&lt;br /&gt;
Apache DataFusion Comet has a native [[Apache Iceberg]] reader that scans data and delete files in Rust and is enabled by default; &amp;lt;code&amp;gt;spark.comet.scan.icebergNative.enabled=false&amp;lt;/code&amp;gt; turns it off. The guide says it was tested with Iceberg 1.5, 1.8, 1.9, 1.10 and 1.11 and with Hadoop, Hive and REST catalogs ([[Iceberg REST catalog]]). Native Iceberg writes are off by default and enabled with &amp;lt;code&amp;gt;spark.comet.write.iceberg.enabled=true&amp;lt;/code&amp;gt;. HDFS-backed tables fall back to Spark.&amp;lt;ref name=&amp;quot;iceberg&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/docs/source/user-guide/latest/iceberg.md |title=Apache Iceberg (Comet 1.2.0 user guide) |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Support for [[Delta Lake]] in Comet is experimental. It covers DSv1 Delta table scans through Comet&amp;#039;s native Parquet scan, needs a separate &amp;lt;code&amp;gt;comet-contrib-delta-spark&amp;lt;/code&amp;gt; JAR next to &amp;lt;code&amp;gt;delta-spark&amp;lt;/code&amp;gt;, and is off by default (&amp;lt;code&amp;gt;spark.comet.scan.delta.enabled&amp;lt;/code&amp;gt;).&amp;lt;ref name=&amp;quot;delta&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/datafusion-comet/blob/1.2.0/docs/source/user-guide/latest/delta.md |title=Delta Lake (experimental) (Comet 1.2.0 user guide) |publisher=Apache DataFusion Comet |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Comet vs Gluten ==&lt;br /&gt;
Apache DataFusion Comet and [[Apache Gluten]] have similar architectures: both are Spark plugins that serialize the physical plan and execute it natively. Gluten serializes plans as Substrait and supports several engines ([[Velox]] and ClickHouse in Gluten 1.7.0), while Comet uses its own Protocol Buffers format and only DataFusion. The comparison page, maintained by the Comet community and described there as likely biased, names the implementation language (Rust for DataFusion, C++ for Velox) as the main practical difference, for example for teams that write native UDFs.&amp;lt;ref name=&amp;quot;cmp&amp;quot; /&amp;gt; See [[Native execution engine (Spark)]] for a wider comparison.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Native execution engine (Spark)]]&lt;br /&gt;
* [[Apache Gluten]]&lt;br /&gt;
* [[Velox]]&lt;br /&gt;
* [[GPU acceleration in Spark]]&lt;br /&gt;
* [[Project Tungsten]]&lt;br /&gt;
* [[Apache Iceberg]]&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>