94 releases (41 major breaking)

new 42.2.0 Nov 4, 2024
42.0.0 Sep 17, 2024
41.0.0 Aug 11, 2024
40.0.0 Jul 12, 2024
0.2.2 Mar 26, 2018

#12 in Database interfaces

Download history 169897/week @ 2024-07-19 181164/week @ 2024-07-26 173108/week @ 2024-08-02 180197/week @ 2024-08-09 211469/week @ 2024-08-16 199208/week @ 2024-08-23 169093/week @ 2024-08-30 191913/week @ 2024-09-06 181594/week @ 2024-09-13 216304/week @ 2024-09-20 201995/week @ 2024-09-27 235317/week @ 2024-10-04 201017/week @ 2024-10-11 204951/week @ 2024-10-18 325077/week @ 2024-10-25 140814/week @ 2024-11-01

915,718 downloads per month
Used in 134 crates (97 directly)

Apache-2.0

10MB
203K SLoC

Apache DataFusion

Crates.io Apache licensed Build Status Discord chat

Website | API Docs | Chat

logo

DataFusion is an extensible query engine written in Rust that uses Apache Arrow as its in-memory format. DataFusion's target users are developers building fast and feature rich database and analytic systems, customized to particular workloads. See use cases for examples.

"Out of the box," DataFusion offers [SQL] and Dataframe APIs, excellent performance, built-in support for CSV, Parquet, JSON, and Avro, extensive customization, and a great community. Python Bindings are also available.

DataFusion features a full query planner, a columnar, streaming, multi-threaded, vectorized execution engine, and partitioned data sources. You can customize DataFusion at almost all points including additional data sources, query languages, functions, custom operators and more. See the Architecture section for more details.

Here are links to some important information

What can you do with this crate?

DataFusion is great for building projects such as domain specific query engines, new database platforms and data pipelines, query languages and more. It lets you start quickly from a fully working engine, and then customize those features specific to your use. Click Here to see a list known users.

Contributing to DataFusion

Please see the contributor guide and communication pages for more information.

Crate features

This crate has several features which can be specified in your Cargo.toml.

Default features:

  • nested_expressions: functions for working with nested type function such as array_to_string
  • compression: reading files compressed with xz2, bzip2, flate2, and zstd
  • crypto_expressions: cryptographic functions such as md5 and sha256
  • datetime_expressions: date and time functions such as to_timestamp
  • encoding_expressions: encode and decode functions
  • parquet: support for reading the Apache Parquet format
  • regex_expressions: regular expression functions, such as regexp_match
  • unicode_expressions: Include unicode aware functions such as character_length
  • unparser : enables support to reverse LogicalPlans back into SQL

Optional features:

  • avro: support for reading the Apache Avro format
  • backtrace: include backtrace information in error messages
  • pyarrow: conversions between PyArrow and DataFusion types
  • serde: enable arrow-schema's serde feature

Rust Version Compatibility Policy

DataFusion's Minimum Required Stable Rust Version (MSRV) policy is to support stable 4 latest Rust versions OR the stable minor Rust version as of 4 months, whichever is lower.

For example, given the releases 1.78.0, 1.79.0, 1.80.0, 1.80.1 and 1.81.0 DataFusion will support 1.78.0, which is 3 minor versions prior to the most minor recent 1.81.

If a hotfix is released for the minimum supported Rust version (MSRV), the MSRV will be the minor version with all hotfixes, even if it surpasses the four-month window.

We enforce this policy using a MSRV CI Check

Dependencies

~41–58MB
~1M SLoC