๐Ÿš€ Apache Top-Level Project

Supercharge SparkSQL with Native Execution

Apache Gluten is a middle layer that offloads JVM-based SQL engines to native engines like Velox and ClickHouse โ€” delivering up to 3x+ performance with zero query changes.

3.3x
TPC-H Speedup
3.0x
TPC-DS Speedup
23x
Max Single-Query Speedup
15+
Production Adopters

Why Gluten?

Gluten bridges the gap between Spark's scalability and native engine performance โ€” no query changes required.

โšก

Native Execution

Offloads compute-intensive processing from the JVM to highly optimized native C++ engines for dramatic speedups.

๐Ÿ”Œ

Drop-in Plugin

Works as a Spark plugin โ€” no changes to your DataFrames, SQL queries, or application code. Just add a JAR.

๐Ÿ”€

Multi-Backend Support

Switch between Velox and ClickHouse backends based on your workload. Extensible to support more native engines.

๐Ÿ“Š

Columnar Processing

End-to-end columnar data pipeline with columnar shuffle, avoiding expensive row-columnar conversions.

๐Ÿ›ก๏ธ

Automatic Fallback

Gracefully falls back to vanilla Spark for unsupported operators, ensuring correctness on every query.

๐Ÿ“ˆ

Full Observability

Native engine metrics are surfaced in the Spark UI, giving you visibility into performance and bottlenecks.

Architecture

Spark physical plans are converted to Substrait and executed by native backends, with results returned via the Spark Columnar API.

Gluten Architecture

Quick Start

Grab a bundle JAR from the downloads page and enable Gluten with a single Spark configuration change.

spark-shell \
  --master yarn --deploy-mode client \
  --conf spark.plugins=org.apache.gluten.GlutenPlugin \
  --conf spark.memory.offHeap.enabled=true \
  --conf spark.memory.offHeap.size=20g \
  --conf spark.shuffle.manager=org.apache.spark.shuffle.sort.ColumnarShuffleManager \
  --jars gluten-velox-bundle-spark3.5_2.12-centos_7_x86_64-1.6.0.jar

Read the full documentation โ†’

Performance

Benchmarked on TPC-H and TPC-DS at 3TB scale on Intelยฎ Xeonยฎ Platinum 8592+ with Spark 3.3.1.

TPC-H Time Comparison
TPC-H โ€” Overall 3.34x speedup with Gluten + Velox
TPC-H Speedup
TPC-H โ€” Up to 23.45x speedup on individual queries
TPC-DS Time Comparison
TPC-DS โ€” Overall 3.02x speedup with Gluten + Velox
TPC-DS Speedup
TPC-DS โ€” Up to 13.75x speedup on individual queries

Trusted in Production

Used by leading technology companies across the globe.

Microsoft Google IBM Alibaba Cloud Bytedance Uber Tencent Meituan Baidu Pinterest Oracle Kyligence BIGO Netease Intel

View all adopters โ†’

Ready to accelerate your Spark workloads?

Join the community and start using Gluten today.

Thanks to Our Contributors

Gluten is built by a vibrant open-source community.

Contributors