[package]
edition = "2024"
rust-version = "1.95.0"
name = "datafusion"
version = "56.0.0"
authors = ["Apache DataFusion <dev@datafusion.apache.org>"]
build = false
include = [
"benches/*.rs",
"src/**/*.md",
"src/**/*.rs",
"Cargo.toml",
"LICENSE.txt",
"NOTICE.txt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DataFusion is an in-memory query engine that uses Apache Arrow as the memory model"
homepage = "https://datafusion.apache.org"
readme = "README.md"
keywords = [
"arrow",
"query",
"sql",
]
license = "Apache-2.0"
repository = "https://github.com/apache/datafusion"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[package.metadata.cargo-machete]
ignored = [
"datafusion-doc",
"datafusion-macros",
"dashmap",
]
[features]
array_expressions = ["nested_expressions"]
avro = ["datafusion-datasource-avro"]
backtrace = ["datafusion-common/backtrace"]
compression = [
"liblzma",
"bzip2",
"flate2",
"zstd",
"datafusion-datasource-arrow/compression",
"datafusion-datasource/compression",
]
crypto_expressions = ["datafusion-functions/crypto_expressions"]
datetime_expressions = ["datafusion-functions/datetime_expressions"]
default = [
"nested_expressions",
"crypto_expressions",
"datetime_expressions",
"encoding_expressions",
"regex_expressions",
"string_expressions",
"unicode_expressions",
"compression",
"parquet",
"recursive_protection",
"sql",
]
docs_generation = []
encoding_expressions = ["datafusion-functions/encoding_expressions"]
extended_tests = []
force_hash_collisions = [
"datafusion-physical-plan/force_hash_collisions",
"datafusion-common/force_hash_collisions",
]
math_expressions = ["datafusion-functions/math_expressions"]
nested_expressions = ["datafusion-functions-nested"]
parquet = [
"datafusion-common/parquet",
"dep:parquet",
"datafusion-datasource-parquet",
]
parquet_encryption = [
"parquet",
"parquet/encryption",
"datafusion-common/parquet_encryption",
"datafusion-datasource-parquet/parquet_encryption",
]
recursive_protection = [
"datafusion-common/recursive_protection",
"datafusion-expr/recursive_protection",
"datafusion-optimizer/recursive_protection",
"datafusion-physical-optimizer/recursive_protection",
"datafusion-physical-expr/recursive_protection",
"datafusion-sql?/recursive_protection",
"sqlparser?/recursive-protection",
]
regex_expressions = ["datafusion-functions/regex_expressions"]
serde = [
"dep:serde",
"arrow-schema/serde",
]
sql = [
"datafusion-common/sql",
"datafusion-functions-nested?/sql",
"datafusion-sql",
"sqlparser",
]
string_expressions = ["datafusion-functions/string_expressions"]
unicode_expressions = [
"datafusion-sql?/unicode_expressions",
"datafusion-functions/unicode_expressions",
]
[lib]
name = "datafusion"
path = "src/lib.rs"
[[bin]]
name = "print_config_docs"
path = "src/bin/print_config_docs.rs"
required-features = ["docs_generation"]
[[bin]]
name = "print_functions_docs"
path = "src/bin/print_functions_docs.rs"
required-features = ["docs_generation"]
[[bin]]
name = "print_runtime_config_docs"
path = "src/bin/print_runtime_config_docs.rs"
required-features = ["docs_generation"]
[[bench]]
name = "aggregate_query_sql"
path = "benches/aggregate_query_sql.rs"
harness = false
[[bench]]
name = "cse_projection_pushdown"
path = "benches/cse_projection_pushdown.rs"
harness = false
required-features = ["parquet"]
[[bench]]
name = "csv_load"
path = "benches/csv_load.rs"
harness = false
[[bench]]
name = "dataframe"
path = "benches/dataframe.rs"
harness = false
[[bench]]
name = "distinct_query_sql"
path = "benches/distinct_query_sql.rs"
harness = false
[[bench]]
name = "filter_query_sql"
path = "benches/filter_query_sql.rs"
harness = false
[[bench]]
name = "in_list_rewrite"
path = "benches/in_list_rewrite.rs"
harness = false
[[bench]]
name = "map_query_sql"
path = "benches/map_query_sql.rs"
harness = false
required-features = ["nested_expressions"]
[[bench]]
name = "math_query_sql"
path = "benches/math_query_sql.rs"
harness = false
[[bench]]
name = "parquet_nested_schema_pruning"
path = "benches/parquet_nested_schema_pruning.rs"
harness = false
required-features = ["parquet"]
[[bench]]
name = "parquet_query_sql"
path = "benches/parquet_query_sql.rs"
harness = false
required-features = ["parquet"]
[[bench]]
name = "parquet_struct_projection"
path = "benches/parquet_struct_projection.rs"
harness = false
required-features = ["parquet"]
[[bench]]
name = "parquet_struct_query"
path = "benches/parquet_struct_query.rs"
harness = false
required-features = ["parquet"]
[[bench]]
name = "parquet_struct_shared_prefix_pushdown"
path = "benches/parquet_struct_shared_prefix_pushdown.rs"
harness = false
required-features = ["parquet"]
[[bench]]
name = "partition_metrics"
path = "benches/partition_metrics.rs"
harness = false
[[bench]]
name = "physical_plan"
path = "benches/physical_plan.rs"
harness = false
[[bench]]
name = "preserve_file_partitioning"
path = "benches/preserve_file_partitioning.rs"
harness = false
required-features = ["parquet"]
[[bench]]
name = "push_down_filter"
path = "benches/push_down_filter.rs"
harness = false
[[bench]]
name = "pwmj_semi_anti_sql"
path = "benches/pwmj_semi_anti_sql.rs"
harness = false
[[bench]]
name = "range_and_generate_series"
path = "benches/range_and_generate_series.rs"
harness = false
[[bench]]
name = "reset_plan_states"
path = "benches/reset_plan_states.rs"
harness = false
[[bench]]
name = "scalar"
path = "benches/scalar.rs"
harness = false
[[bench]]
name = "sort"
path = "benches/sort.rs"
harness = false
[[bench]]
name = "sort_limit_query_sql"
path = "benches/sort_limit_query_sql.rs"
harness = false
[[bench]]
name = "spm"
path = "benches/spm.rs"
harness = false
[[bench]]
name = "sql_planner"
path = "benches/sql_planner.rs"
harness = false
[[bench]]
name = "sql_planner_extended"
path = "benches/sql_planner_extended.rs"
harness = false
[[bench]]
name = "sql_query_with_io"
path = "benches/sql_query_with_io.rs"
harness = false
[[bench]]
name = "struct_query_sql"
path = "benches/struct_query_sql.rs"
harness = false
[[bench]]
name = "topk_aggregate"
path = "benches/topk_aggregate.rs"
harness = false
[[bench]]
name = "topk_repartition"
path = "benches/topk_repartition.rs"
harness = false
[[bench]]
name = "window_query_sql"
path = "benches/window_query_sql.rs"
harness = false
[dependencies.arrow]
version = "60.1.0"
features = [
"prettyprint",
"chrono-tz",
]
[dependencies.arrow-schema]
version = "60.1.0"
features = ["canonical_extension_types"]
default-features = false
[dependencies.async-trait]
version = "0.1.89"
[dependencies.bzip2]
version = "0.6.1"
optional = true
[dependencies.chrono]
version = "0.4.45"
default-features = false
[dependencies.datafusion-catalog]
version = "56.0.0"
[dependencies.datafusion-catalog-listing]
version = "56.0.0"
[dependencies.datafusion-common]
version = "56.0.0"
features = ["object_store"]
default-features = false
[dependencies.datafusion-common-runtime]
version = "56.0.0"
[dependencies.datafusion-datasource]
version = "56.0.0"
default-features = false
[dependencies.datafusion-datasource-arrow]
version = "56.0.0"
default-features = false
[dependencies.datafusion-datasource-avro]
version = "56.0.0"
optional = true
default-features = false
[dependencies.datafusion-datasource-csv]
version = "56.0.0"
default-features = false
[dependencies.datafusion-datasource-json]
version = "56.0.0"
default-features = false
[dependencies.datafusion-datasource-parquet]
version = "56.0.0"
optional = true
default-features = false
[dependencies.datafusion-execution]
version = "56.0.0"
default-features = false
[dependencies.datafusion-expr]
version = "56.0.0"
default-features = false
[dependencies.datafusion-expr-common]
version = "56.0.0"
[dependencies.datafusion-functions]
version = "56.0.0"
[dependencies.datafusion-functions-aggregate]
version = "56.0.0"
[dependencies.datafusion-functions-nested]
version = "56.0.0"
optional = true
default-features = false
[dependencies.datafusion-functions-table]
version = "56.0.0"
[dependencies.datafusion-functions-window]
version = "56.0.0"
[dependencies.datafusion-optimizer]
version = "56.0.0"
default-features = false
[dependencies.datafusion-physical-expr]
version = "56.0.0"
default-features = false
[dependencies.datafusion-physical-expr-adapter]
version = "56.0.0"
default-features = false
[dependencies.datafusion-physical-expr-common]
version = "56.0.0"
default-features = false
[dependencies.datafusion-physical-optimizer]
version = "56.0.0"
[dependencies.datafusion-physical-plan]
version = "56.0.0"
[dependencies.datafusion-session]
version = "56.0.0"
[dependencies.datafusion-sql]
version = "56.0.0"
optional = true
[dependencies.flate2]
version = "1.1.9"
optional = true
[dependencies.futures]
version = "0.3"
[dependencies.indexmap]
version = "2.14.0"
[dependencies.itertools]
version = "0.15"
[dependencies.liblzma]
version = "0.4.6"
features = ["static"]
optional = true
[dependencies.log]
version = "^0.4"
[dependencies.object_store]
version = "0.14.2"
default-features = false
[dependencies.parking_lot]
version = "0.13"
[dependencies.parquet]
version = "60.1.0"
features = [
"arrow",
"async",
"object_store",
]
optional = true
default-features = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false
[dependencies.sqlparser]
version = "0.63.0"
features = [
"std",
"visitor",
]
optional = true
default-features = false
[dependencies.tempfile]
version = "3"
[dependencies.tokio]
version = "1.52"
features = [
"macros",
"rt",
"sync",
]
[dependencies.url]
version = "2.5.7"
[dependencies.uuid]
version = "1.23"
features = [
"v4",
"js",
]
[dependencies.zstd]
version = "0.14"
optional = true
default-features = false
[dev-dependencies.async-trait]
version = "0.1.89"
[dev-dependencies.bytes]
version = "1.11"
[dev-dependencies.criterion]
version = "0.8"
features = [
"async_tokio",
"async_futures",
]
[dev-dependencies.ctor]
version = "1.0.7"
[dev-dependencies.dashmap]
version = "6.2.1"
[dev-dependencies.datafusion-doc]
version = "56.0.0"
[dev-dependencies.datafusion-functions-window-common]
version = "56.0.0"
[dev-dependencies.datafusion-macros]
version = "56.0.0"
[dev-dependencies.datafusion-physical-optimizer]
version = "56.0.0"
[dev-dependencies.doc-comment]
version = "0.3"
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.glob]
version = "0.3.0"
[dev-dependencies.half]
version = "2.7.0"
default-features = false
[dev-dependencies.insta]
version = "1.47.2"
features = [
"glob",
"filters",
]
[dev-dependencies.rand]
version = "0.9"
features = ["small_rng"]
[dev-dependencies.rand_distr]
version = "0.5"
[dev-dependencies.recursive]
version = "0.1.1"
[dev-dependencies.regex]
version = "1.12"
[dev-dependencies.rstest]
version = "0.28.0"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.sysinfo]
version = "0.39.3"
[dev-dependencies.tokio]
version = "1.52"
features = [
"macros",
"rt",
"sync",
"rt-multi-thread",
"parking_lot",
"fs",
]
[dev-dependencies.unicode-width]
version = "0.2"
[target.'cfg(not(target_os = "windows"))'.dev-dependencies.nix]
version = "0.31.3"
features = ["fs"]
[lints.clippy]
allow_attributes = "warn"
as_ptr_cast_mut = "warn"
assert_is_empty = "allow"
branches_sharing_code = "warn"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clear_with_drain = "warn"
coerce_container_to_any = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "allow"
default_union_representation = "warn"
doc_include_without_cfg = "warn"
doc_markdown = "allow"
empty_enum_variants_with_brackets = "warn"
enum_glob_use = "allow"
equatable_if_let = "warn"
exit = "warn"
explicit_into_iter_loop = "allow"
explicit_iter_loop = "allow"
float_cmp = "allow"
fn_to_numeric_cast_any = "warn"
if_not_else = "allow"
ignored_unit_patterns = "allow"
implicit_clone = "allow"
implicit_hasher = "allow"
imprecise_flops = "warn"
infinite_loop = "warn"
inline_always = "allow"
items_after_statements = "allow"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
large_include_file = "warn"
large_stack_frames = "warn"
literal_string_with_formatting_args = "warn"
manual_string_new = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_bool = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
mem_forget = "warn"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_raw_string_hashes = "allow"
needless_type_cast = "warn"
negative_feature_names = "warn"
non_zero_suggestions = "warn"
nonstandard_macro_braces = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
pathbuf_init_then_push = "warn"
precedence_bits = "warn"
pub_without_shorthand = "warn"
rc_mutex = "warn"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
rest_pat_in_fully_bound_structs = "warn"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
set_contains_or_insert = "warn"
similar_names = "allow"
single_match_else = "allow"
single_option_map = "warn"
string_lit_as_bytes = "warn"
string_lit_chars_any = "warn"
struct_excessive_bools = "allow"
struct_field_names = "allow"
suspicious_xor_used_as_pow = "warn"
too_many_lines = "allow"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
trivially_copy_pass_by_ref = "allow"
uninhabited_references = "warn"
unnecessary_literal_bound = "allow"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_peekable = "warn"
unused_rounding = "warn"
unused_self = "allow"
used_underscore_items = "allow"
verbose_file_reads = "warn"
wildcard_dependencies = "warn"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unused_qualifications = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
'cfg(datafusion_coop, values("tokio", "tokio_fallback", "per_stream"))',
"cfg(coverage)",
"cfg(coverage_nightly)",
"cfg(datafusion_loom)",
]