talira

Apache DataFusion

Extensible SQL and DataFrame query engine in Rust, built on Apache Arrow

open sourceApache-2.0free

Apache DataFusion is a fast, extensible query engine written in Rust that uses the Apache Arrow in-memory format, for building data-centric systems such as databases, dataframe libraries, machine learning and streaming applications. It offers SQL and DataFrame APIs, a vectorized, multithreaded, streaming execution engine, native Parquet, CSV, JSON and Avro support, streaming IO from object stores (S3, Azure Blob Storage, Google Cloud Storage) and a query optimizer with filter and projection pushdown and join reordering. Nearly every part can be extended: user-defined functions, table providers for custom data sources, other query languages, plan nodes and optimizer passes, and it reads and writes Substrait plans. It ships a CLI and Python bindings, began as part of the Arrow project and is an Apache Software Foundation project under the Apache 2.0 licence.

Problems it solves

  • embed a SQL query engine in my Rust application instead of writing one
  • build a new database or analytics system without implementing query planning and execution myself
  • run SQL over Parquet and CSV files sitting in S3 from my own code
  • add custom functions and data sources to an Arrow-based query engine

Features

  • SQL and DataFrame APIs
  • vectorized, multithreaded, streaming execution
  • Parquet, CSV, JSON and Avro built in
  • object store IO: S3, Azure Blob Storage, Google Cloud Storage
  • user-defined scalar, aggregate and window functions
  • custom data sources via TableProvider
  • Substrait plans
  • CLI and Python bindings

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Apache DataFusion does.

  1. DuckDB An in-process analytical SQL database that queries CSV, JSON, Parquet and Iceberg files directly, from a laptop to a large server.
  2. Polars Fast open source dataframe and query engine for Python, Rust and SQL
  3. Trino Fast distributed SQL query engine for big data analytics
  4. Presto Distributed SQL query engine for big data

Compare Apache DataFusion with the top 3