You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache DataFusion Comet is a high-performance accelerator for Apache Spark, built on top of the powerful
39
-
[Apache DataFusion] query engine. Comet is designed to significantly enhance the
40
-
performance of Apache Spark workloads while leveraging commodity hardware and seamlessly integrating with the
41
-
Spark ecosystem without requiring any code changes.
38
+
Apache DataFusion Comet is a high-performance accelerator for Apache Spark. Comet keeps Spark queries
39
+
**Arrow-native end-to-end**: operators, expressions, shuffle, and broadcast all stay in Apache Arrow
40
+
columnar format, avoiding the per-row overhead of Spark's row-based engine. Within the Arrow-native
41
+
pipeline, operators and expressions execute as Rust code (via the [Apache DataFusion] query engine)
42
+
or as JVM code that operates directly on Arrow batches. Comet integrates with the Spark ecosystem
43
+
without requiring any code changes.
42
44
43
45
**Comet provides a ~2x speedup for TPC-DS @ SF 1000 (1TB), resulting in ~50% cost savings.**
44
46
@@ -58,17 +60,20 @@ See the [Comet Benchmarking Guide](https://datafusion.apache.org/comet/contribut
58
60
59
61
## What Comet Accelerates
60
62
61
-
Comet replaces Spark operators and expressions with native Rust implementations that run on Apache DataFusion.
62
-
It uses Apache Arrow for zero-copy data transfer between the JVM and native code.
63
+
Comet accelerates Spark workloads by replacing Spark operators and expressions with high-performance implementations that process Apache Arrow columnar data directly. Most operators are powered by native Rust execution built on Apache DataFusion, while others run efficiently in the JVM on Arrow batches. This unified columnar execution model keeps processing within the Comet engine end-to-end, reducing overhead and delivering faster, more efficient query execution without reverting to Spark's traditional row-based engine.
63
64
64
65
-**Parquet scans**: native Parquet reader integrated with Spark's query planner
65
66
-**Apache Iceberg**: accelerated Parquet scans when reading Iceberg tables from Spark
66
67
(see the [Iceberg guide](https://datafusion.apache.org/comet/user-guide/iceberg.html))
67
-
-**Shuffle**: native columnar shuffle with support for hash and range partitioning
68
+
-**Shuffle**: Arrow-IPC columnar shuffle with support for hash and range partitioning, in a native Rust
69
+
implementation paired with a JVM fallback for unsupported partition key types
68
70
-**Expressions**: hundreds of supported Spark expressions across math, string, datetime, array,
69
71
map, JSON, hash, and predicate categories
70
72
-**Aggregations**: hash aggregate with support for `FILTER (WHERE ...)` clauses
71
73
-**Joins**: hash join, sort-merge join, and broadcast join
74
+
-**Scala/Java UDFs**: support for keeping Scala/Java scalar UDFs in the Comet pipeline
0 commit comments