chore: Update datafusion (#3943)
* chore: Update datafusion * refactor: update for new datafusion * chore: Run cargo hakari tasks Co-authored-by: CircleCI[bot] <circleci@influxdata.com>pull/24376/head
parent
b870b9340b
commit
e09f39d6a0
|
@ -73,6 +73,12 @@ version = "1.0.55"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "159bb86af3a200e19a068f4224eae4c8bb2d0fa054c7e5d1cacd5cef95e684cd"
|
checksum = "159bb86af3a200e19a068f4224eae4c8bb2d0fa054c7e5d1cacd5cef95e684cd"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "arrayref"
|
||||||
|
version = "0.3.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "arrayvec"
|
name = "arrayvec"
|
||||||
version = "0.4.12"
|
version = "0.4.12"
|
||||||
|
@ -82,6 +88,12 @@ dependencies = [
|
||||||
"nodrop",
|
"nodrop",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "arrayvec"
|
||||||
|
version = "0.7.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "arrow"
|
name = "arrow"
|
||||||
version = "9.1.0"
|
version = "9.1.0"
|
||||||
|
@ -381,6 +393,29 @@ version = "1.3.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "blake2"
|
||||||
|
version = "0.10.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b9cf849ee05b2ee5fba5e36f97ff8ec2533916700fc0758d40d92136a42f3388"
|
||||||
|
dependencies = [
|
||||||
|
"digest 0.10.3",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "blake3"
|
||||||
|
version = "1.3.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a08e53fc5a564bb15bfe6fae56bd71522205f1f91893f9c0116edad6496c183f"
|
||||||
|
dependencies = [
|
||||||
|
"arrayref",
|
||||||
|
"arrayvec 0.7.2",
|
||||||
|
"cc",
|
||||||
|
"cfg-if",
|
||||||
|
"constant_time_eq",
|
||||||
|
"digest 0.10.3",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "block-buffer"
|
name = "block-buffer"
|
||||||
version = "0.7.3"
|
version = "0.7.3"
|
||||||
|
@ -720,6 +755,12 @@ dependencies = [
|
||||||
"workspace-hack",
|
"workspace-hack",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "constant_time_eq"
|
||||||
|
version = "0.1.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "core-foundation"
|
name = "core-foundation"
|
||||||
version = "0.9.3"
|
version = "0.9.3"
|
||||||
|
@ -1040,7 +1081,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "datafusion"
|
name = "datafusion"
|
||||||
version = "7.0.0"
|
version = "7.0.0"
|
||||||
source = "git+https://github.com/apache/arrow-datafusion.git?rev=81e76edc330067332ac9a3972525ecbe92953267#81e76edc330067332ac9a3972525ecbe92953267"
|
source = "git+https://github.com/apache/arrow-datafusion.git?rev=3261e2bcdfa13e460d7a11a64dd72f272c7d872b#3261e2bcdfa13e460d7a11a64dd72f272c7d872b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"arrow",
|
"arrow",
|
||||||
|
@ -1048,6 +1089,7 @@ dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"datafusion-common",
|
"datafusion-common",
|
||||||
"datafusion-expr",
|
"datafusion-expr",
|
||||||
|
"datafusion-physical-expr",
|
||||||
"futures",
|
"futures",
|
||||||
"hashbrown 0.12.0",
|
"hashbrown 0.12.0",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
|
@ -1069,7 +1111,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "datafusion-common"
|
name = "datafusion-common"
|
||||||
version = "7.0.0"
|
version = "7.0.0"
|
||||||
source = "git+https://github.com/apache/arrow-datafusion.git?rev=81e76edc330067332ac9a3972525ecbe92953267#81e76edc330067332ac9a3972525ecbe92953267"
|
source = "git+https://github.com/apache/arrow-datafusion.git?rev=3261e2bcdfa13e460d7a11a64dd72f272c7d872b#3261e2bcdfa13e460d7a11a64dd72f272c7d872b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrow",
|
"arrow",
|
||||||
"ordered-float 2.10.0",
|
"ordered-float 2.10.0",
|
||||||
|
@ -1080,7 +1122,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "datafusion-expr"
|
name = "datafusion-expr"
|
||||||
version = "7.0.0"
|
version = "7.0.0"
|
||||||
source = "git+https://github.com/apache/arrow-datafusion.git?rev=81e76edc330067332ac9a3972525ecbe92953267#81e76edc330067332ac9a3972525ecbe92953267"
|
source = "git+https://github.com/apache/arrow-datafusion.git?rev=3261e2bcdfa13e460d7a11a64dd72f272c7d872b#3261e2bcdfa13e460d7a11a64dd72f272c7d872b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"arrow",
|
"arrow",
|
||||||
|
@ -1088,6 +1130,29 @@ dependencies = [
|
||||||
"sqlparser",
|
"sqlparser",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "datafusion-physical-expr"
|
||||||
|
version = "7.0.0"
|
||||||
|
source = "git+https://github.com/apache/arrow-datafusion.git?rev=3261e2bcdfa13e460d7a11a64dd72f272c7d872b#3261e2bcdfa13e460d7a11a64dd72f272c7d872b"
|
||||||
|
dependencies = [
|
||||||
|
"ahash",
|
||||||
|
"arrow",
|
||||||
|
"blake2",
|
||||||
|
"blake3",
|
||||||
|
"chrono",
|
||||||
|
"datafusion-common",
|
||||||
|
"datafusion-expr",
|
||||||
|
"hashbrown 0.12.0",
|
||||||
|
"lazy_static",
|
||||||
|
"md-5 0.10.1",
|
||||||
|
"ordered-float 2.10.0",
|
||||||
|
"paste",
|
||||||
|
"rand",
|
||||||
|
"regex",
|
||||||
|
"sha2 0.10.2",
|
||||||
|
"unicode-segmentation",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "datafusion_util"
|
name = "datafusion_util"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -2909,6 +2974,15 @@ dependencies = [
|
||||||
"opaque-debug 0.3.0",
|
"opaque-debug 0.3.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "md-5"
|
||||||
|
version = "0.10.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "658646b21e0b72f7866c7038ab086d3d5e1cd6271f060fd37defb241949d0582"
|
||||||
|
dependencies = [
|
||||||
|
"digest 0.10.3",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "md5"
|
name = "md5"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
|
@ -3246,7 +3320,7 @@ version = "0.4.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bafe4179722c2894288ee77a9f044f02811c86af699344c498b0840c698a2465"
|
checksum = "bafe4179722c2894288ee77a9f044f02811c86af699344c498b0840c698a2465"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec",
|
"arrayvec 0.4.12",
|
||||||
"itoa 0.4.8",
|
"itoa 0.4.8",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -4570,7 +4644,7 @@ dependencies = [
|
||||||
"http",
|
"http",
|
||||||
"hyper",
|
"hyper",
|
||||||
"log",
|
"log",
|
||||||
"md-5",
|
"md-5 0.9.1",
|
||||||
"percent-encoding",
|
"percent-encoding",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
"rusoto_credential",
|
"rusoto_credential",
|
||||||
|
@ -5236,7 +5310,7 @@ dependencies = [
|
||||||
"itoa 1.0.1",
|
"itoa 1.0.1",
|
||||||
"libc",
|
"libc",
|
||||||
"log",
|
"log",
|
||||||
"md-5",
|
"md-5 0.9.1",
|
||||||
"memchr",
|
"memchr",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"paste",
|
"paste",
|
||||||
|
@ -6450,6 +6524,7 @@ dependencies = [
|
||||||
"futures-sink",
|
"futures-sink",
|
||||||
"futures-task",
|
"futures-task",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
|
"generic-array 0.14.5",
|
||||||
"getrandom",
|
"getrandom",
|
||||||
"hashbrown 0.11.2",
|
"hashbrown 0.11.2",
|
||||||
"hashbrown 0.12.0",
|
"hashbrown 0.12.0",
|
||||||
|
|
|
@ -9,5 +9,5 @@ description = "Re-exports datafusion at a specific version"
|
||||||
|
|
||||||
# Rename to workaround doctest bug
|
# Rename to workaround doctest bug
|
||||||
# Turn off optional datafusion features (e.g. don't get support for crypo functions or avro)
|
# Turn off optional datafusion features (e.g. don't get support for crypo functions or avro)
|
||||||
upstream = { git = "https://github.com/apache/arrow-datafusion.git", rev="81e76edc330067332ac9a3972525ecbe92953267", default-features = false, package = "datafusion" }
|
upstream = { git = "https://github.com/apache/arrow-datafusion.git", rev="3261e2bcdfa13e460d7a11a64dd72f272c7d872b", default-features = false, package = "datafusion" }
|
||||||
workspace-hack = { path = "../workspace-hack"}
|
workspace-hack = { path = "../workspace-hack"}
|
||||||
|
|
|
@ -193,7 +193,7 @@ impl Storage {
|
||||||
/// made simpler by using a plain `Iter` rather than a `Stream`.
|
/// made simpler by using a plain `Iter` rather than a `Stream`.
|
||||||
async fn record_batches_to_parquet_bytes(
|
async fn record_batches_to_parquet_bytes(
|
||||||
&self,
|
&self,
|
||||||
mut stream: impl Stream<Item = ArrowResult<RecordBatch>> + Send + Sync + Unpin,
|
mut stream: impl Stream<Item = ArrowResult<RecordBatch>> + Send + Unpin,
|
||||||
schema: SchemaRef,
|
schema: SchemaRef,
|
||||||
metadata_bytes: &[u8],
|
metadata_bytes: &[u8],
|
||||||
) -> Result<Vec<u8>> {
|
) -> Result<Vec<u8>> {
|
||||||
|
|
|
@ -76,6 +76,7 @@ fn is_comparison(op: Operator) -> bool {
|
||||||
// added to the enum we will have to update this `match`
|
// added to the enum we will have to update this `match`
|
||||||
match op {
|
match op {
|
||||||
Operator::BitwiseAnd => false,
|
Operator::BitwiseAnd => false,
|
||||||
|
Operator::BitwiseOr => false,
|
||||||
Operator::Eq => true,
|
Operator::Eq => true,
|
||||||
Operator::NotEq => true,
|
Operator::NotEq => true,
|
||||||
Operator::Lt => true,
|
Operator::Lt => true,
|
||||||
|
|
|
@ -20,7 +20,7 @@ use arrow::{array::ArrayRef, datatypes::DataType};
|
||||||
use datafusion::{
|
use datafusion::{
|
||||||
error::{DataFusionError, Result as DataFusionResult},
|
error::{DataFusionError, Result as DataFusionResult},
|
||||||
physical_plan::{
|
physical_plan::{
|
||||||
functions::{ReturnTypeFunction, Signature, Volatility},
|
functions::{Signature, Volatility},
|
||||||
udaf::AggregateUDF,
|
udaf::AggregateUDF,
|
||||||
Accumulator,
|
Accumulator,
|
||||||
},
|
},
|
||||||
|
@ -195,6 +195,8 @@ impl SelectorOutput {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ReturnTypeFunction = Arc<dyn Fn(&[DataType]) -> DataFusionResult<Arc<DataType>> + Send + Sync>;
|
||||||
|
|
||||||
/// Factory function for creating the UDA function for DataFusion
|
/// Factory function for creating the UDA function for DataFusion
|
||||||
fn make_uda<SELECTOR>(name: &'static str, output: SelectorOutput) -> AggregateUDF
|
fn make_uda<SELECTOR>(name: &'static str, output: SelectorOutput) -> AggregateUDF
|
||||||
where
|
where
|
||||||
|
|
|
@ -27,6 +27,7 @@ futures-core = { version = "0.3", features = ["alloc", "std"] }
|
||||||
futures-sink = { version = "0.3", features = ["alloc", "std"] }
|
futures-sink = { version = "0.3", features = ["alloc", "std"] }
|
||||||
futures-task = { version = "0.3", default-features = false, features = ["alloc", "std"] }
|
futures-task = { version = "0.3", default-features = false, features = ["alloc", "std"] }
|
||||||
futures-util = { version = "0.3", features = ["alloc", "async-await", "async-await-macro", "channel", "futures-channel", "futures-io", "futures-macro", "futures-sink", "io", "memchr", "sink", "slab", "std"] }
|
futures-util = { version = "0.3", features = ["alloc", "async-await", "async-await-macro", "channel", "futures-channel", "futures-io", "futures-macro", "futures-sink", "io", "memchr", "sink", "slab", "std"] }
|
||||||
|
generic-array = { version = "0.14", default-features = false, features = ["more_lengths"] }
|
||||||
getrandom = { version = "0.2", default-features = false, features = ["std"] }
|
getrandom = { version = "0.2", default-features = false, features = ["std"] }
|
||||||
hashbrown-a6292c17cd707f01 = { package = "hashbrown", version = "0.11", features = ["ahash", "inline-more", "raw"] }
|
hashbrown-a6292c17cd707f01 = { package = "hashbrown", version = "0.11", features = ["ahash", "inline-more", "raw"] }
|
||||||
hashbrown-5ef9efb8ec2df382 = { package = "hashbrown", version = "0.12", features = ["ahash", "inline-more", "raw"] }
|
hashbrown-5ef9efb8ec2df382 = { package = "hashbrown", version = "0.12", features = ["ahash", "inline-more", "raw"] }
|
||||||
|
@ -80,6 +81,7 @@ futures-core = { version = "0.3", features = ["alloc", "std"] }
|
||||||
futures-sink = { version = "0.3", features = ["alloc", "std"] }
|
futures-sink = { version = "0.3", features = ["alloc", "std"] }
|
||||||
futures-task = { version = "0.3", default-features = false, features = ["alloc", "std"] }
|
futures-task = { version = "0.3", default-features = false, features = ["alloc", "std"] }
|
||||||
futures-util = { version = "0.3", features = ["alloc", "async-await", "async-await-macro", "channel", "futures-channel", "futures-io", "futures-macro", "futures-sink", "io", "memchr", "sink", "slab", "std"] }
|
futures-util = { version = "0.3", features = ["alloc", "async-await", "async-await-macro", "channel", "futures-channel", "futures-io", "futures-macro", "futures-sink", "io", "memchr", "sink", "slab", "std"] }
|
||||||
|
generic-array = { version = "0.14", default-features = false, features = ["more_lengths"] }
|
||||||
getrandom = { version = "0.2", default-features = false, features = ["std"] }
|
getrandom = { version = "0.2", default-features = false, features = ["std"] }
|
||||||
hashbrown-a6292c17cd707f01 = { package = "hashbrown", version = "0.11", features = ["ahash", "inline-more", "raw"] }
|
hashbrown-a6292c17cd707f01 = { package = "hashbrown", version = "0.11", features = ["ahash", "inline-more", "raw"] }
|
||||||
indexmap = { version = "1", default-features = false, features = ["std"] }
|
indexmap = { version = "1", default-features = false, features = ["std"] }
|
||||||
|
|
Loading…
Reference in New Issue