Skip to content

Commit 9c01a16

Browse files
committed
Merge remote-tracking branch 'apache/main' into simply-udf
2 parents b69b33f + 2a490e4 commit 9c01a16

325 files changed

Lines changed: 10177 additions & 5902 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ jobs:
8888
- name: Check function packages (array_expressions)
8989
run: cargo check --no-default-features --features=array_expressions -p datafusion
9090

91+
- name: Check function packages (datetime_expressions)
92+
run: cargo check --no-default-features --features=datetime_expressions -p datafusion
93+
9194
- name: Check Cargo.lock for datafusion-cli
9295
run: |
9396
# If this test fails, try running `cargo update` in the `datafusion-cli` directory

Cargo.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ rust-version = "1.72"
5151
version = "36.0.0"
5252

5353
[workspace.dependencies]
54+
# We turn off default-features for some dependencies here so the workspaces which inherit them can
55+
# selectively turn them on if needed, since we can override default-features = true (from false)
56+
# for the inherited dependency but cannot do the reverse (override from true to false).
57+
#
58+
# See for more detaiils: https://github.com/rust-lang/cargo/issues/11329
5459
arrow = { version = "50.0.0", features = ["prettyprint"] }
5560
arrow-array = { version = "50.0.0", default-features = false, features = ["chrono-tz"] }
5661
arrow-buffer = { version = "50.0.0", default-features = false }
@@ -65,14 +70,14 @@ bytes = "1.4"
6570
chrono = { version = "0.4.34", default-features = false }
6671
ctor = "0.2.0"
6772
dashmap = "5.4.0"
68-
datafusion = { path = "datafusion/core", version = "36.0.0" }
69-
datafusion-common = { path = "datafusion/common", version = "36.0.0" }
73+
datafusion = { path = "datafusion/core", version = "36.0.0", default-features = false }
74+
datafusion-common = { path = "datafusion/common", version = "36.0.0", default-features = false }
7075
datafusion-execution = { path = "datafusion/execution", version = "36.0.0" }
7176
datafusion-expr = { path = "datafusion/expr", version = "36.0.0" }
7277
datafusion-functions = { path = "datafusion/functions", version = "36.0.0" }
7378
datafusion-functions-array = { path = "datafusion/functions-array", version = "36.0.0" }
74-
datafusion-optimizer = { path = "datafusion/optimizer", version = "36.0.0" }
75-
datafusion-physical-expr = { path = "datafusion/physical-expr", version = "36.0.0" }
79+
datafusion-optimizer = { path = "datafusion/optimizer", version = "36.0.0", default-features = false }
80+
datafusion-physical-expr = { path = "datafusion/physical-expr", version = "36.0.0", default-features = false }
7681
datafusion-physical-plan = { path = "datafusion/physical-plan", version = "36.0.0" }
7782
datafusion-proto = { path = "datafusion/proto", version = "36.0.0" }
7883
datafusion-sql = { path = "datafusion/sql", version = "36.0.0" }
@@ -81,7 +86,7 @@ datafusion-substrait = { path = "datafusion/substrait", version = "36.0.0" }
8186
doc-comment = "0.3"
8287
env_logger = "0.11"
8388
futures = "0.3"
84-
half = "2.2.1"
89+
half = { version = "2.2.1", default-features = false }
8590
indexmap = "2.0.0"
8691
itertools = "0.12"
8792
log = "^0.4"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Default features:
7878
- `array_expressions`: functions for working with arrays such as `array_to_string`
7979
- `compression`: reading files compressed with `xz2`, `bzip2`, `flate2`, and `zstd`
8080
- `crypto_expressions`: cryptographic functions such as `md5` and `sha256`
81+
- `datetime_expressions`: date and time functions such as `to_timestamp`
8182
- `encoding_expressions`: `encode` and `decode` functions
8283
- `parquet`: support for reading the [Apache Parquet] format
8384
- `regex_expressions`: regular expression functions, such as `regexp_match`

benchmarks/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
[package]
1919
name = "datafusion-benchmarks"
2020
description = "DataFusion Benchmarks"
21-
version = "36.0.0"
21+
version = { workspace = true }
2222
edition = { workspace = true }
23-
authors = ["Apache Arrow <dev@arrow.apache.org>"]
24-
homepage = "https://github.com/apache/arrow-datafusion"
25-
repository = "https://github.com/apache/arrow-datafusion"
26-
license = "Apache-2.0"
23+
authors = { workspace = true }
24+
homepage = { workspace = true }
25+
repository = { workspace = true }
26+
license = { workspace = true }
2727
rust-version = { workspace = true }
2828

2929
[features]
@@ -33,8 +33,8 @@ snmalloc = ["snmalloc-rs"]
3333

3434
[dependencies]
3535
arrow = { workspace = true }
36-
datafusion = { path = "../datafusion/core", version = "36.0.0" }
37-
datafusion-common = { path = "../datafusion/common", version = "36.0.0" }
36+
datafusion = { workspace = true, default-features = true }
37+
datafusion-common = { workspace = true, default-features = true }
3838
env_logger = { workspace = true }
3939
futures = { workspace = true }
4040
log = { workspace = true }
@@ -49,4 +49,4 @@ test-utils = { path = "../test-utils/", version = "0.1.0" }
4949
tokio = { workspace = true, features = ["rt-multi-thread", "parking_lot"] }
5050

5151
[dev-dependencies]
52-
datafusion-proto = { path = "../datafusion/proto", version = "36.0.0" }
52+
datafusion-proto = { workspace = true }

benchmarks/src/clickbench.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
// under the License.
1717

1818
use std::path::Path;
19-
use std::{path::PathBuf, time::Instant};
19+
use std::path::PathBuf;
2020

2121
use datafusion::{
2222
error::{DataFusionError, Result},
2323
prelude::SessionContext,
2424
};
2525
use datafusion_common::exec_datafusion_err;
26+
use datafusion_common::instant::Instant;
2627
use structopt::StructOpt;
2728

2829
use crate::{BenchmarkRun, CommonOpt};

benchmarks/src/parquet_filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use datafusion::logical_expr::{lit, or, Expr};
2424
use datafusion::physical_plan::collect;
2525
use datafusion::prelude::{col, SessionContext};
2626
use datafusion::test_util::parquet::{ParquetScanOptions, TestParquetFile};
27+
use datafusion_common::instant::Instant;
2728
use std::path::PathBuf;
28-
use std::time::Instant;
2929
use structopt::StructOpt;
3030

3131
/// Test performance of parquet filter pushdown

benchmarks/src/sort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ use datafusion::physical_plan::collect;
2525
use datafusion::physical_plan::sorts::sort::SortExec;
2626
use datafusion::prelude::{SessionConfig, SessionContext};
2727
use datafusion::test_util::parquet::TestParquetFile;
28+
use datafusion_common::instant::Instant;
2829
use std::path::PathBuf;
2930
use std::sync::Arc;
30-
use std::time::Instant;
3131
use structopt::StructOpt;
3232

3333
/// Test performance of sorting large datasets

benchmarks/src/tpch/convert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
use datafusion_common::instant::Instant;
1819
use std::fs;
1920
use std::path::{Path, PathBuf};
20-
use std::time::Instant;
2121

2222
use datafusion::common::not_impl_err;
23-
use datafusion::error::DataFusionError;
23+
2424
use datafusion::error::Result;
2525
use datafusion::prelude::*;
2626
use parquet::basic::Compression;

benchmarks/src/tpch/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use arrow::datatypes::SchemaBuilder;
2121
use datafusion::{
2222
arrow::datatypes::{DataType, Field, Schema},
2323
common::plan_err,
24-
error::{DataFusionError, Result},
24+
error::Result,
2525
};
2626
use std::fs;
2727
mod run;

benchmarks/src/tpch/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ use datafusion::physical_plan::{collect, displayable};
3131
use datafusion_common::{DEFAULT_CSV_EXTENSION, DEFAULT_PARQUET_EXTENSION};
3232
use log::info;
3333

34+
use datafusion_common::instant::Instant;
3435
use std::path::PathBuf;
3536
use std::sync::Arc;
36-
use std::time::Instant;
3737

3838
use datafusion::error::Result;
3939
use datafusion::prelude::*;

0 commit comments

Comments
 (0)