Apache Gluten
| Developer | Apache Software Foundation; initiated by Intel and Kyligence |
|---|---|
| Initial release | 2022 (project start); entered the Apache Incubator on 2023-12-15 |
| Latest release | 1.7.0 (2026-08-26) |
| Written in | Scala, C++, Java |
| Type | Native execution plugin for Apache Spark SQL |
| License | Apache License 2.0 |
| Website | gluten.apache.org |
| Repository | github.com/apache/gluten |
| Related | Apache Spark, Velox, Apache DataFusion Comet, Native execution engine (Spark), Project Tungsten |
Apache Gluten is an open source plugin for Apache Spark that converts Spark SQL physical plans into plans for a native engine, such as Velox or ClickHouse, and runs the supported parts of a query in native code instead of in the Java virtual machine (JVM).[1] Gluten keeps Spark's scheduling, fault tolerance and APIs, so DataFrame code and SQL queries do not change; only the cluster configuration does.[1] Gluten is a top-level project of the Apache Software Foundation (ASF) since 2026, and it is one of the native execution engines available for Spark.[2]
What is Apache Gluten?
Apache Gluten is a middle layer between Spark and a native SQL engine. Its README describes the design principle as reusing Spark's control flow while offloading compute-intensive data processing to the native side. The name is Latin for "glue".[1]
Apache Gluten converts the Spark physical plan into a Substrait plan, passes it to the native side through the Java Native Interface (JNI), and builds a chain of native operators from it. Results come back as Spark ColumnarBatch objects through Spark's columnar API, and Gluten uses the Apache Arrow data format as its in-memory representation.[1]
Apache Gluten supports two backends. The Velox backend uses Velox, a C++ library of data processing components. The ClickHouse backend uses a ClickHouse fork maintained by Kyligence. The design allows more backends to be added.[1] The ASF graduation announcement also mentions future integration with Apache DataFusion as a goal of the extensible design.[3]
History and status
Apache Gluten was initiated by Intel and Kyligence in 2022; its README lists BIGO, Meituan, Alibaba Cloud, NetEase, Baidu, Microsoft, IBM and Google among other contributing companies.[1] Releases up to 1.1.1 were made before the project joined the ASF and are marked "non-Apache release" on the downloads page.[4]
Apache Gluten entered the Apache Incubator on 2023-12-15. Its first Apache release in the incubator was 1.2.0 on 2024-09-03, followed by 1.3.0, 1.4.0 and 1.5.0 (2025-10-29).[2] The project graduated on 2026-02-18, the date the ASF board established it as a top-level project, and the ASF announced the graduation on 2026-03-05.[2][3][5] Gluten is therefore no longer incubating.
The latest Apache Gluten release is 1.7.0, published on GitHub on 2026-08-26.[6] A release candidate for 1.8.0 (v1.8.0-rc0) was tagged on 2026-11-17 but is not a release.[7]
Which Spark versions does Gluten support?
Apache Gluten uses a shim layer to support several Spark versions at once, and its README says it supports the latest three to four Spark releases during a development cycle.[1] The Gluten 1.7.0 binary release is built for Spark 3.3, 3.4, 3.5, 4.0 and 4.1.[4][8] On the main branch the list is Spark 3.4, 3.5, 4.0 and 4.1.[1] No Gluten release lists Spark 4.2 or 4.3. The Spark 4.0 and 4.1 builds of the Velox backend need JDK 17 or later and Scala 2.13.[9]
How does Gluten work with Apache Spark?
Apache Gluten is enabled through Spark's plugin interface. A basic configuration from the project README sets the plugin class, turns on Spark off-heap memory, puts the Gluten JAR on the driver and executor class paths, and switches to Gluten's columnar shuffle manager:[1]
spark-shell \
--conf spark.plugins=org.apache.gluten.GlutenPlugin \
--conf spark.memory.offHeap.enabled=true \
--conf spark.memory.offHeap.size=20g \
--conf spark.driver.extraClassPath=${GLUTEN_JAR} \
--conf spark.executor.extraClassPath=${GLUTEN_JAR} \
--conf spark.shuffle.manager=org.apache.spark.shuffle.sort.ColumnarShuffleManager
Apache Gluten needs off-heap memory because native operators allocate memory outside the JVM heap. The configuration guide says Gluten uses spark.memory.offHeap.size to size native memory even when off-heap is disabled, and recommends a larger value if the plugin runs out of memory.[10] Spark's own default for spark.memory.offHeap.enabled is false.[11]
Apache Gluten's columnar shuffle reuses the shuffle service of Spark core but adds a columnar exchange operator, so that data stays in columnar form between stages.[1] The Velox backend also works with the remote shuffle services Apache Celeborn and Apache Uniffle.[9]
Apache Gluten has a spark.gluten.enabled setting (default true), but the configuration guide calls it experimental and recommends enabling or disabling Gluten through spark.plugins. With spark.gluten.ui.enabled (default true), Gluten adds its own page to the Spark web UI.[10]
What runs natively and what falls back?
Apache Gluten offloads only the operators and expressions that the chosen backend supports. For anything else it falls back to vanilla Spark, and it inserts ColumnarToRow and RowToColumnar conversions where the plan moves between Gluten's columnar data and Spark's internal row format.[1] Because each conversion has a cost, Gluten has settings that send larger parts of a plan back to Spark, for example spark.gluten.sql.columnar.wholeStage.fallback.threshold and spark.gluten.sql.columnar.query.fallback.threshold, which count ColumnarToRow transitions and vanilla leaf nodes (both default -1, off).[10]
Some fallbacks are on by default for correctness. spark.gluten.sql.ansiFallback.enabled (default true) makes Gluten fall back to Spark when ANSI mode is on, and spark.gluten.sql.fallbackRegexpExpressions can send all regular expressions to Spark because the native engine uses RE2, which differs from java.util.regex in a few cases.[10] In Spark 4.3.0, spark.sql.ansi.enabled defaults to true, so this setting applies to queries that run with Spark's default configuration.[11]
Which table formats does the Velox backend read?
The Velox backend of Apache Gluten can scan Delta Lake tables (including column mapping), Apache Iceberg tables in both copy-on-write and merge-on-read form, Apache Hudi copy-on-write tables and Apache Paimon tables without a primary key. Each format needs a build profile (for example -Pdelta or -Piceberg) that adds it to the Velox bundle JAR.[9] The 1.7.0 release notes include a native statistics tracker for Delta writes.[6]
See also
- Native execution engine (Spark)
- Velox
- Apache DataFusion Comet
- GPU acceleration in Spark
- Project Tungsten
- Shuffle
References
- ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 Apache Gluten README. Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 2.0 2.1 2.2 Apache Gluten Project Incubation Status. Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 3.0 3.1 The Apache Software Foundation Graduates Two Open Source Projects from Incubator. The ASF Blog, 2026-03-05.Retrieved 2026-11-23.
- ↑ 4.0 4.1 Downloads. Apache Gluten.Retrieved 2026-11-23.
- ↑ Board history: Gluten. Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 6.0 6.1 Release v1.7.0. Apache Software Foundation (GitHub).Retrieved 2026-11-23.
- ↑ Releases: apache/gluten. Apache Software Foundation (GitHub).Retrieved 2026-11-23.
- ↑ Apache Gluten README (v1.7.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 9.0 9.1 9.2 Gluten with Velox Backend. Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 10.0 10.1 10.2 10.3 Gluten Configuration. Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 11.0 11.1 Spark Configuration (Spark 4.3.0). Apache Software Foundation.Retrieved 2026-11-23.