Skip to content

Apache DataFusion SQL Query Engine

Update to arrow 31 (#4927)

Raphael Taylor-Davies4623166c50bf
diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml
index d821abc0cb..8141701059 100644
--- a/benchmarks/Cargo.toml
+++ b/benchmarks/Cargo.toml
@@ -33,14 +33,14 @@ simd = ["datafusion/simd"]
snmalloc = ["snmalloc-rs"]
[dependencies]
-arrow = "30.0.1"
+arrow = "31.0.0"
datafusion = { path = "../datafusion/core", version = "16.0.0", features = ["scheduler"] }
env_logger = "0.10"
futures = "0.3"
mimalloc = { version = "0.1", optional = true, default-features = false }
num_cpus = "1.13.0"
object_store = "0.5.0"
-parquet = "30.0.1"
+parquet = "31.0.0"
parquet-test-utils = { path = "../parquet-test-utils/", version = "0.1.0" }
rand = "0.8.4"
serde = { version = "1.0.136", features = ["derive"] }
diff --git a/datafusion-cli/Cargo.lock b/datafusion-cli/Cargo.lock
index e6f0b53034..7e1c7d25f0 100644
--- a/datafusion-cli/Cargo.lock
+++ b/datafusion-cli/Cargo.lock
@@ -68,9 +68,9 @@ checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
[[package]]
name = "arrow"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1948f504d736dc6f71ea33773c5c7475998c44925be5321e9d18087a626845f5"
+checksum = "1b556d39f9d19e363833a0fe65d591cd0e2ecc0977589a78179b592bea8dc945"
dependencies = [
"ahash",
"arrow-arith",
@@ -91,9 +91,9 @@ dependencies = [
[[package]]
name = "arrow-arith"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5984187a7913813ffd5bb034fdc6810bdbe0ae4cff2292f0eb92797342dc02c8"
+checksum = "85c61b9235694b48f60d89e0e8d6cb478f39c65dd14b0fe1c3f04379b7d50068"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -106,9 +106,9 @@ dependencies = [
[[package]]
name = "arrow-array"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf71dc342bb42343d331b58c0bcad095dc045e367493d47b7f4c4509e2adfee5"
+checksum = "a1e6e839764618a911cc460a58ebee5ad3d42bc12d9a5e96a29b7cc296303aa1"
dependencies = [
"ahash",
"arrow-buffer",
@@ -122,9 +122,9 @@ dependencies = [
[[package]]
name = "arrow-buffer"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7b328d9f3e124cca761ec85a6d3fcea9bf8de1b8531c7a3b6abd367472024df"
+checksum = "03a21d232b1bc1190a3fdd2f9c1e39b7cd41235e95a0d44dd4f522bc5f495748"
dependencies = [
"half",
"num",
@@ -132,9 +132,9 @@ dependencies = [
[[package]]
name = "arrow-cast"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03976edbf66ac00a582af10a51743f0a9611777adfd68c71799d783344c3bdd2"
+checksum = "83dcdb1436cac574f1c1b30fda91c53c467534337bef4064bbd4ea2d6fbc6e04"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -148,9 +148,9 @@ dependencies = [
[[package]]
name = "arrow-csv"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c1b610dc9e3b43bcebeacede47381252ea41363fbcc3c3eb641ff24fc94e567e"
+checksum = "a01677ae9458f5af9e35e1aa6ba97502f539e621db0c6672566403f97edd0448"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -167,9 +167,9 @@ dependencies = [
[[package]]
name = "arrow-data"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "174df8602dedcdb9149538809c11bd3c0888af30b915f763c66a3d724391c8b9"
+checksum = "14e3e69c9fd98357eeeab4aa0f626ecf7ecf663e68e8fc04eac87c424a414477"
dependencies = [
"arrow-buffer",
"arrow-schema",
@@ -179,9 +179,9 @@ dependencies = [
[[package]]
name = "arrow-ipc"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a316907980e70fbf87b006c52993a22d93e4a9bca4ec2ac42cfedb2fdc204ac"
+checksum = "64cac2706acbd796965b6eaf0da30204fe44aacf70273f8cb3c9b7d7f3d4c190"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -193,9 +193,9 @@ dependencies = [
[[package]]
name = "arrow-json"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2cc1a1b2e98be0d8d20f932f76a8d976b779d502c8f6b828becc835d6879e903"
+checksum = "7790e8b7df2d8ef5ac802377ac256cf2fb80cbf7d44b82d6464e20ace6232a5a"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -211,9 +211,9 @@ dependencies = [
[[package]]
name = "arrow-ord"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7db83c14ddddf81c1d10ce303670f70b7687c8f52de7425b09ae905e4357fda5"
+checksum = "c7ee6e1b761dfffaaf7b5bbe68c113a576a3a802146c5c0b9fcec781e30d80a3"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -225,9 +225,9 @@ dependencies = [
[[package]]
name = "arrow-row"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db41abdf586f1dba8c2973711d5c69ffb9d63688ffa46354b8c85bf9347a921c"
+checksum = "6e65bfedf782fc92721e796fdd26ae7343c98ba9a9243d62def9e4e1c4c1cf0b"
dependencies = [
"ahash",
"arrow-array",
@@ -240,15 +240,15 @@ dependencies = [
[[package]]
name = "arrow-schema"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a99dcc494fe6224e5ece572c5935d5109120a71df06bd8e04c4e23ac14dd8fac"
+checksum = "73ca49d010b27e2d73f70c1d1f90c1b378550ed0f4ad379c4dea0c997d97d723"
[[package]]
name = "arrow-select"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e3a2cde3ea85b28f64704045d7d54e0fcc4b17efffced574d2dd3320218298f"
+checksum = "976cbaeb1a85c09eea81f3f9c149c758630ff422ed0238624c5c3f4704b6a53c"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -259,9 +259,9 @@ dependencies = [
[[package]]
name = "arrow-string"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04cf8d0003ebe0aecc716e0ac8c858c570872a7485c7c6284975f31469703a0d"
+checksum = "3d4882762f8f48a9218946c016553d38b04b4fe8202038dad4141b3b887b7da8"
dependencies = [
"arrow-array",
"arrow-buffer",
@@ -1783,9 +1783,9 @@ dependencies = [
[[package]]
name = "parquet"
-version = "30.0.1"
+version = "31.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4bba2a7630d2946f9e2020225062ad5619d70320e06dae6ae1074febf4c4e932"
+checksum = "6b4ee1ffc0778395c9783a5c74f2cad2fb1a128ade95a965212d31b7b13e3d45"
dependencies = [
"ahash",
"arrow-array",
@@ -1795,7 +1795,7 @@ dependencies = [
"arrow-ipc",
"arrow-schema",
"arrow-select",
- "base64 0.20.0",
+ "base64 0.21.0",
"brotli",
"bytes",
"chrono",
diff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.toml
index 1149ef6846..9cefbff5c2 100644
--- a/datafusion-cli/Cargo.toml
+++ b/datafusion-cli/Cargo.toml
@@ -29,7 +29,7 @@ rust-version = "1.62"
readme = "README.md"
[dependencies]
-arrow = "30.0.1"
+arrow = "31.0.0"
async-trait = "0.1.41"
clap = { version = "3", features = ["derive", "cargo"] }
datafusion = { path = "../datafusion/core", version = "16.0.0" }
diff --git a/datafusion-examples/Cargo.toml b/datafusion-examples/Cargo.toml
index eab9239962..46cd6b42ba 100644
--- a/datafusion-examples/Cargo.toml
+++ b/datafusion-examples/Cargo.toml
@@ -34,8 +34,8 @@ path = "examples/avro_sql.rs"
required-features = ["datafusion/avro"]
[dev-dependencies]
-arrow = "30.0.1"
-arrow-flight = "30.0.1"
+arrow = "31.0.0"
+arrow-flight = "31.0.0"
async-trait = "0.1.41"
datafusion = { path = "../datafusion/core" }
datafusion-common = { path = "../datafusion/common" }
diff --git a/datafusion/common/Cargo.toml b/datafusion/common/Cargo.toml
index bb5b8899e8..665278bcec 100644
--- a/datafusion/common/Cargo.toml
+++ b/datafusion/common/Cargo.toml
@@ -40,11 +40,11 @@ pyarrow = ["pyo3", "arrow/pyarrow"]
[dependencies]
apache-avro = { version = "0.14", default-features = false, features = ["snappy"], optional = true }
-arrow = { version = "30.0.1", default-features = false }
+arrow = { version = "31.0.0", default-features = false }
chrono = { version = "0.4", default-features = false }
cranelift-module = { version = "0.89.0", optional = true }
num_cpus = "1.13.0"
object_store = { version = "0.5.0", default-features = false, optional = true }
-parquet = { version = "30.0.1", default-features = false, optional = true }
+parquet = { version = "31.0.0", default-features = false, optional = true }
pyo3 = { version = "0.17.1", optional = true }
sqlparser = "0.30"
diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.toml
index 75c8606968..3003c22eef 100644
--- a/datafusion/core/Cargo.toml
+++ b/datafusion/core/Cargo.toml
@@ -57,7 +57,7 @@ unicode_expressions = ["datafusion-physical-expr/regex_expressions", "datafusion
[dependencies]
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
apache-avro = { version = "0.14", optional = true }
-arrow = { version = "30.0.1", features = ["prettyprint"] }
+arrow = { version = "31.0.0", features = ["prettyprint"] }
async-compression = { version = "0.3.14", features = ["bzip2", "gzip", "xz", "futures-io", "tokio"], optional = true }
async-trait = "0.1.41"
bytes = "1.1"
@@ -83,7 +83,7 @@ num-traits = { version = "0.2", optional = true }
num_cpus = "1.13.0"
object_store = "0.5.3"
parking_lot = "0.12"
-parquet = { version = "30.0.1", features = ["arrow", "async"] }
+parquet = { version = "31.0.0", features = ["arrow", "async"] }
paste = "^1.0"
percent-encoding = "2.2.0"
pin-project-lite = "^0.2.7"
@@ -102,7 +102,7 @@ xz2 = { version = "0.1", optional = true }
[dev-dependencies]
-arrow = { version = "30.0.1", features = ["prettyprint", "dyn_cmp_dict"] }
+arrow = { version = "31.0.0", features = ["prettyprint", "dyn_cmp_dict"] }
async-trait = "0.1.53"
criterion = "0.4"
csv = "1.1.6"
diff --git a/datafusion/core/src/physical_plan/coalesce_batches.rs b/datafusion/core/src/physical_plan/coalesce_batches.rs
index b50ac08ba5..2f7ebd85a5 100644
--- a/datafusion/core/src/physical_plan/coalesce_batches.rs
+++ b/datafusion/core/src/physical_plan/coalesce_batches.rs
@@ -30,10 +30,9 @@ use crate::physical_plan::{
};
use crate::execution::context::TaskContext;
-use arrow::compute::kernels::concat::concat;
use arrow::datatypes::SchemaRef;
use arrow::error::Result as ArrowResult;
-use arrow::record_batch::{RecordBatch, RecordBatchOptions};
+use arrow::record_batch::RecordBatch;
use futures::stream::{Stream, StreamExt};
use log::trace;
@@ -281,28 +280,13 @@ pub fn concat_batches(
batches: &[RecordBatch],
row_count: usize,
) -> ArrowResult<RecordBatch> {
- if batches.is_empty() {
- return Ok(RecordBatch::new_empty(schema.clone()));
- }
- let mut arrays = Vec::with_capacity(schema.fields().len());
- for i in 0..schema.fields().len() {
- let array = concat(
- &batches
- .iter()
- .map(|batch| batch.column(i).as_ref())
- .collect::<Vec<_>>(),
- )?;
- arrays.push(array);
- }
trace!(
"Combined {} batches containing {} rows",
batches.len(),
row_count
);
-
- let options = RecordBatchOptions::new().with_row_count(Some(row_count));
-
- RecordBatch::try_new_with_options(schema.clone(), arrays, &options)
+ let b = arrow::compute::concat_batches(schema, batches)?;
+ Ok(b)
}
#[cfg(test)]
diff --git a/datafusion/core/src/physical_plan/file_format/csv.rs b/datafusion/core/src/physical_plan/file_format/csv.rs
index 3723df9c49..769ceeb050 100644
--- a/datafusion/core/src/physical_plan/file_format/csv.rs
+++ b/datafusion/core/src/physical_plan/file_format/csv.rs
@@ -448,7 +448,7 @@ mod tests {
let err = it.next().await.unwrap().unwrap_err().to_string();
assert_eq!(
err,
- "Csv error: incorrect number of fields, expected 14 got 13"
+ "Csv error: incorrect number of fields for line 1, expected 14 got 13"
);
Ok(())
}
diff --git a/datafusion/core/tests/sql/timestamp.rs b/datafusion/core/tests/sql/timestamp.rs
index 885adda47b..c7dce1b00a 100644
--- a/datafusion/core/tests/sql/timestamp.rs
+++ b/datafusion/core/tests/sql/timestamp.rs
@@ -534,11 +534,11 @@ async fn timestamp_minmax() -> Result<()> {
let sql = "SELECT MIN(table_a.ts), MAX(table_b.ts) FROM table_a, table_b";
let actual = execute_to_batches(&ctx, sql).await;
let expected = vec![
- "+-------------------------+----------------------------------+",
- "| MIN(table_a.ts) | MAX(table_b.ts) |",
- "+-------------------------+----------------------------------+",
- "| 2020-09-08T11:42:29.190 | 2020-09-08T13:42:29.190855+00:00 |",
- "+-------------------------+----------------------------------+",
+ "+-------------------------+-----------------------------+",
+ "| MIN(table_a.ts) | MAX(table_b.ts) |",
+ "+-------------------------+-----------------------------+",
+ "| 2020-09-08T11:42:29.190 | 2020-09-08T13:42:29.190855Z |",
+ "+-------------------------+-----------------------------+",
];
assert_batches_eq!(expected, &actual);
@@ -560,19 +560,19 @@ async fn timestamp_coercion() -> Result<()> {
let sql = "SELECT table_a.ts, table_b.ts, table_a.ts = table_b.ts FROM table_a, table_b order by table_a.ts desc, table_b.ts desc";
let actual = execute_to_batches(&ctx, sql).await;
let expected = vec![
- "+---------------------------+-------------------------------+-------------------------+",
- "| ts | ts | table_a.ts = table_b.ts |",
- "+---------------------------+-------------------------------+-------------------------+",
- "| 2020-09-08T13:42:29+00:00 | 2020-09-08T13:42:29.190+00:00 | true |",
- "| 2020-09-08T13:42:29+00:00 | 2020-09-08T12:42:29.190+00:00 | false |",
- "| 2020-09-08T13:42:29+00:00 | 2020-09-08T11:42:29.190+00:00 | false |",
- "| 2020-09-08T12:42:29+00:00 | 2020-09-08T13:42:29.190+00:00 | false |",
- "| 2020-09-08T12:42:29+00:00 | 2020-09-08T12:42:29.190+00:00 | true |",
- "| 2020-09-08T12:42:29+00:00 | 2020-09-08T11:42:29.190+00:00 | false |",
- "| 2020-09-08T11:42:29+00:00 | 2020-09-08T13:42:29.190+00:00 | false |",
- "| 2020-09-08T11:42:29+00:00 | 2020-09-08T12:42:29.190+00:00 | false |",
- "| 2020-09-08T11:42:29+00:00 | 2020-09-08T11:42:29.190+00:00 | true |",
- "+---------------------------+-------------------------------+-------------------------+",
+ "+----------------------+--------------------------+-------------------------+",
+ "| ts | ts | table_a.ts = table_b.ts |",
+ "+----------------------+--------------------------+-------------------------+",
+ "| 2020-09-08T13:42:29Z | 2020-09-08T13:42:29.190Z | true |",
+ "| 2020-09-08T13:42:29Z | 2020-09-08T12:42:29.190Z | false |",
+ "| 2020-09-08T13:42:29Z | 2020-09-08T11:42:29.190Z | false |",
+ "| 2020-09-08T12:42:29Z | 2020-09-08T13:42:29.190Z | false |",
+ "| 2020-09-08T12:42:29Z | 2020-09-08T12:42:29.190Z | true |",
+ "| 2020-09-08T12:42:29Z | 2020-09-08T11:42:29.190Z | false |",
+ "| 2020-09-08T11:42:29Z | 2020-09-08T13:42:29.190Z | false |",
+ "| 2020-09-08T11:42:29Z | 2020-09-08T12:42:29.190Z | false |",
+ "| 2020-09-08T11:42:29Z | 2020-09-08T11:42:29.190Z | true |",
+ "+----------------------+--------------------------+-------------------------+",
];
assert_batches_eq!(expected, &actual);
}
@@ -1539,13 +1539,13 @@ async fn cast_timestamp_to_timestamptz() -> Result<()> {
let actual = execute_to_batches(&ctx, sql).await;
let expected = vec![
- "+----------------------------------+---------------------------------------+",
- "| table_a.ts | arrowtypeof(table_a.ts) |",
- "+----------------------------------+---------------------------------------+",
- "| 2020-09-08T13:42:29.190855+00:00 | Timestamp(Nanosecond, Some(\"+00:00\")) |",
- "| 2020-09-08T12:42:29.190855+00:00 | Timestamp(Nanosecond, Some(\"+00:00\")) |",
- "| 2020-09-08T11:42:29.190855+00:00 | Timestamp(Nanosecond, Some(\"+00:00\")) |",
- "+----------------------------------+---------------------------------------+",
+ "+-----------------------------+---------------------------------------+",
+ "| table_a.ts | arrowtypeof(table_a.ts) |",
+ "+-----------------------------+---------------------------------------+",
+ "| 2020-09-08T13:42:29.190855Z | Timestamp(Nanosecond, Some(\"+00:00\")) |",
+ "| 2020-09-08T12:42:29.190855Z | Timestamp(Nanosecond, Some(\"+00:00\")) |",
+ "| 2020-09-08T11:42:29.190855Z | Timestamp(Nanosecond, Some(\"+00:00\")) |",
+ "+-----------------------------+---------------------------------------+",
];
assert_batches_eq!(expected, &actual);
diff --git a/datafusion/expr/Cargo.toml b/datafusion/expr/Cargo.toml
index 5065856d5e..a38b891969 100644
--- a/datafusion/expr/Cargo.toml
+++ b/datafusion/expr/Cargo.toml
@@ -36,7 +36,7 @@ path = "src/lib.rs"
[dependencies]
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
-arrow = { version = "30.0.1", default-features = false }
+arrow = { version = "31.0.0", default-features = false }
datafusion-common = { path = "../common", version = "16.0.0" }
log = "^0.4"
sqlparser = "0.30"
diff --git a/datafusion/jit/Cargo.toml b/datafusion/jit/Cargo.toml
index 1d071159a5..89782ad015 100644
--- a/datafusion/jit/Cargo.toml
+++ b/datafusion/jit/Cargo.toml
@@ -36,7 +36,7 @@ path = "src/lib.rs"
jit = []
[dependencies]
-arrow = { version = "30.0.1", default-features = false }
+arrow = { version = "31.0.0", default-features = false }
cranelift = "0.89.0"
cranelift-jit = "0.89.0"
cranelift-module = "0.89.0"
diff --git a/datafusion/optimizer/Cargo.toml b/datafusion/optimizer/Cargo.toml
index 984cd10c57..3a5ce882a6 100644
--- a/datafusion/optimizer/Cargo.toml
+++ b/datafusion/optimizer/Cargo.toml
@@ -37,7 +37,7 @@ default = ["unicode_expressions"]
unicode_expressions = []
[dependencies]
-arrow = { version = "30.0.1", features = ["prettyprint"] }
+arrow = { version = "31.0.0", features = ["prettyprint"] }
async-trait = "0.1.41"
chrono = { version = "0.4.23", default-features = false }
datafusion-common = { path = "../common", version = "16.0.0" }
diff --git a/datafusion/physical-expr/Cargo.toml b/datafusion/physical-expr/Cargo.toml
index 4819fd6300..5b25d97075 100644
--- a/datafusion/physical-expr/Cargo.toml
+++ b/datafusion/physical-expr/Cargo.toml
@@ -40,9 +40,9 @@ unicode_expressions = ["unicode-segmentation"]
[dependencies]
ahash = { version = "0.8", default-features = false, features = ["runtime-rng"] }
-arrow = { version = "30.0.1", features = ["prettyprint", "dyn_cmp_dict"] }
-arrow-buffer = "30.0.1"
-arrow-schema = "30.0.1"
+arrow = { version = "31.0.0", features = ["prettyprint", "dyn_cmp_dict"] }
+arrow-buffer = "31.0.0"
+arrow-schema = "31.0.0"
blake2 = { version = "^0.10.2", optional = true }
blake3 = { version = "1.0", optional = true }
chrono = { version = "0.4.23", default-features = false }
diff --git a/datafusion/proto/Cargo.toml b/datafusion/proto/Cargo.toml
index 9548f17eb0..195e28766a 100644
--- a/datafusion/proto/Cargo.toml
+++ b/datafusion/proto/Cargo.toml
@@ -40,7 +40,7 @@ default = []
json = ["pbjson", "serde", "serde_json"]
[dependencies]
-arrow = "30.0.1"
+arrow = "31.0.0"
chrono = { version = "0.4", default-features = false }
datafusion = { path = "../core", version = "16.0.0" }
datafusion-common = { path = "../common", version = "16.0.0" }
@@ -60,4 +60,4 @@ tokio = "1.18"
[build-dependencies]
# Pin these dependencies so that the generated output is deterministic
pbjson-build = { version = "=0.5.1" }
-prost-build = { version = "=0.11.5" }
+prost-build = { version = "=0.11.6" }
diff --git a/datafusion/row/Cargo.toml b/datafusion/row/Cargo.toml
index 23d3f528f0..20e9679aba 100644
--- a/datafusion/row/Cargo.toml
+++ b/datafusion/row/Cargo.toml
@@ -37,7 +37,7 @@ path = "src/lib.rs"
jit = ["datafusion-jit"]
[dependencies]
-arrow = "30.0.1"
+arrow = "31.0.0"
datafusion-common = { path = "../common", version = "16.0.0" }
datafusion-jit = { path = "../jit", version = "16.0.0", optional = true }
paste = "^1.0"
diff --git a/datafusion/sql/Cargo.toml b/datafusion/sql/Cargo.toml
index 025139ad99..5676a23c66 100644
--- a/datafusion/sql/Cargo.toml
+++ b/datafusion/sql/Cargo.toml
@@ -37,7 +37,7 @@ default = ["unicode_expressions"]
unicode_expressions = []
[dependencies]
-arrow-schema = "30.0.1"
+arrow-schema = "31.0.0"
datafusion-common = { path = "../common", version = "16.0.0" }
datafusion-expr = { path = "../expr", version = "16.0.0" }
log = "^0.4"
diff --git a/parquet-test-utils/Cargo.toml b/parquet-test-utils/Cargo.toml
index 858c350dac..7f5a7f5acb 100644
--- a/parquet-test-utils/Cargo.toml
+++ b/parquet-test-utils/Cargo.toml
@@ -25,4 +25,4 @@ edition = "2021"
[dependencies]
datafusion = { path = "../datafusion/core" }
object_store = "0.5.0"
-parquet = "30.0.1"
+parquet = "31.0.0"
diff --git a/test-utils/Cargo.toml b/test-utils/Cargo.toml
index 54b93540a9..251bd95a44 100644
--- a/test-utils/Cargo.toml
+++ b/test-utils/Cargo.toml
@@ -23,7 +23,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-arrow = { version = "30.0.1", features = ["prettyprint"] }
+arrow = { version = "31.0.0", features = ["prettyprint"] }
datafusion-common = { path = "../datafusion/common" }
env_logger = "0.10.0"
rand = "0.8"