Skip to content

Commit 1903b9b

Browse files
committed
bump crates arrow* and parquet to version 56
1 parent 76c2027 commit 1903b9b

File tree

18 files changed

+1031
-291
lines changed

18 files changed

+1031
-291
lines changed

Cargo.lock

Lines changed: 600 additions & 228 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -217,18 +217,18 @@ anyerror = { version = "=0.1.13" }
217217
anyhow = { version = "1.0.65" }
218218
apache-avro = { version = "0.17.0", features = ["snappy", "zstandard", "xz", "snappy", "bzip"] }
219219
approx = "0.5.1"
220-
arrow = { version = "55" }
221-
arrow-array = { version = "55" }
222-
arrow-buffer = { version = "55" }
223-
arrow-cast = { version = "55", features = ["prettyprint"] }
224-
arrow-csv = { version = "55" }
225-
arrow-data = { version = "55" }
226-
arrow-flight = { version = "55", features = ["flight-sql-experimental", "tls"] }
227-
arrow-ipc = { version = "55", features = ["lz4", "zstd"] }
228-
arrow-json = { version = "55" }
229-
arrow-ord = { version = "55" }
230-
arrow-schema = { version = "55", features = ["serde"] }
231-
arrow-select = { version = "55" }
220+
arrow = { version = "56" }
221+
arrow-array = { version = "56" }
222+
arrow-buffer = { version = "56" }
223+
arrow-cast = { version = "56", features = ["prettyprint"] }
224+
arrow-csv = { version = "56" }
225+
arrow-data = { version = "56" }
226+
arrow-flight = { version = "56", features = ["flight-sql-experimental", "tls-ring"] }
227+
arrow-ipc = { version = "56", features = ["lz4", "zstd"] }
228+
arrow-json = { version = "56" }
229+
arrow-ord = { version = "56" }
230+
arrow-schema = { version = "56", features = ["serde"] }
231+
arrow-select = { version = "56" }
232232
arrow-udf-runtime = { version = "0.8.0", default-features = false, features = ["javascript", "wasm"] }
233233
async-backtrace = "0.2"
234234
async-channel = "2.3.1"
@@ -330,13 +330,13 @@ hyper-util = { version = "0.1.9", features = ["client", "client-legacy", "tokio"
330330
lru = "0.12"
331331

332332
## in branch dev
333-
iceberg = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "1dace26ea25a9b9e2066367cbd3b7badc75dd7f9", features = [
333+
iceberg = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "32b1403", features = [
334334
"storage-all",
335335
] }
336-
iceberg-catalog-glue = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "1dace26ea25a9b9e2066367cbd3b7badc75dd7f9" }
337-
iceberg-catalog-hms = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "1dace26ea25a9b9e2066367cbd3b7badc75dd7f9" }
338-
iceberg-catalog-rest = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "1dace26ea25a9b9e2066367cbd3b7badc75dd7f9" }
339-
iceberg-catalog-s3tables = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "1dace26ea25a9b9e2066367cbd3b7badc75dd7f9" }
336+
iceberg-catalog-glue = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "32b1403" }
337+
iceberg-catalog-hms = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "32b1403" }
338+
iceberg-catalog-rest = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "32b1403" }
339+
iceberg-catalog-s3tables = { version = "0.4.0", git = "https://github.com/databendlabs/iceberg-rust", rev = "32b1403" }
340340

341341
# Explicitly specify compatible AWS SDK versions
342342
aws-config = "1.5.18"
@@ -415,7 +415,7 @@ ordered-float = { version = "5.1.0", default-features = false }
415415
ordq = "0.2.0"
416416
p256 = "0.13"
417417
parking_lot = "0.12.1"
418-
parquet = { version = "55", features = ["async"] }
418+
parquet = { version = "56", features = ["async"] }
419419
passwords = { version = "3.1.16" }
420420
paste = "1.0.15"
421421
percent-encoding = "2.3.1"
@@ -518,9 +518,12 @@ tokio = { version = "1.35.0", features = ["full"] }
518518
tokio-stream = { version = "0.1.11", features = ["net"] }
519519
tokio-util = { version = "0.7.13" }
520520
toml = { version = "0.8", features = ["parse"] }
521-
tonic = { version = "0.12.3", features = ["transport", "codegen", "prost", "tls-roots", "tls"] }
522-
tonic-build = { version = "0.12.3" }
523-
tonic-reflection = { version = "0.12.3" }
521+
#tonic = { version = "0.12.3", features = ["transport", "codegen", "prost", "tls-roots", "tls"] }
522+
tonic = { version = "0.13", features = ["transport", "codegen", "tls-native-roots"] }
523+
tonic-build = { version = "0.13" }
524+
#tonic-prost = { version = "0.13" }
525+
tonic-prost-build = { version = "0.13" }
526+
tonic-reflection = { version = "0.13" }
524527
tower = { version = "0.5.1", features = ["util"] }
525528
tower-service = "0.3.3"
526529
twox-hash = "1.6.3"
@@ -643,15 +646,16 @@ overflow-checks = true
643646
rpath = true
644647

645648
[patch.crates-io]
646-
arrow-udf-runtime = { git = "https://github.com/datafuse-extras/arrow-udf.git", rev = "a442343" }
649+
arrow-udf-runtime = { git = "https://github.com/datafuse-extras/arrow-udf.git", rev = "2480dccf1" }
647650
async-backtrace = { git = "https://github.com/datafuse-extras/async-backtrace.git", rev = "dea4553" }
648651
async-recursion = { git = "https://github.com/datafuse-extras/async-recursion.git", rev = "a353334" }
649652
backtrace = { git = "https://github.com/rust-lang/backtrace-rs.git", rev = "72265be" }
650653
color-eyre = { git = "https://github.com/eyre-rs/eyre.git", rev = "e5d92c3" }
651654
deltalake = { git = "https://github.com/delta-io/delta-rs", rev = "9954bff" }
652655
map-api = { git = "https://github.com/databendlabs/map-api", tag = "v0.4.2" }
653656
openraft = { git = "https://github.com/databendlabs/openraft", tag = "v0.10.0-alpha.11" }
654-
orc-rust = { git = "https://github.com/datafuse-extras/orc-rust", rev = "d82aa6d" }
657+
orc-rust = { git = "https://github.com/datafuse-extras/orc-rust", rev = "fc812ad7010" }
658+
655659
recursive = { git = "https://github.com/datafuse-extras/recursive.git", rev = "16e433a" }
656660
sled = { git = "https://github.com/datafuse-extras/sled", tag = "v0.34.7-datafuse.1" }
657661
state-machine-api = { git = "https://github.com/databendlabs/state-machine-api.git", tag = "v0.3.4" }

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
22
channel = "nightly-2025-04-04"
3-
components = ["rustfmt", "clippy", "rust-src", "miri", "rust-analyzer"]
3+
components = ["rustfmt", "clippy", "rust-src", "miri", "rust-analyzer"]

src/bendpy/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ publish = { workspace = true }
77
edition = { workspace = true }
88

99
[build-dependencies]
10-
pyo3-build-config = "0.24.2"
10+
#pyo3-build-config = "0.24.2"
11+
pyo3-build-config = "0.25"
1112

1213
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1314
[lib]
@@ -32,7 +33,8 @@ databend-query = { workspace = true, features = [
3233
"simd",
3334
"disable_initial_exec_tls",
3435
] }
35-
pyo3 = { version = "0.24", features = ["generate-import-lib", "abi3-py312"] }
36+
#pyo3 = { version = "0.24", features = ["generate-import-lib", "abi3-py312"] }
37+
pyo3 = { version = "0.25", features = ["generate-import-lib", "abi3-py312"] }
3638
serde_json = { workspace = true }
3739
sysinfo = { workspace = true }
3840
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread", "sync"] }

src/common/cloud_control/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ hyper-util = { workspace = true }
1616
prost = { workspace = true }
1717
serde = { workspace = true }
1818
tonic = { workspace = true }
19+
#tonic-prost = { workspace = true }
1920

2021
[build-dependencies]
2122
lenient_semver = { workspace = true }

src/meta/protos/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ num-derive = { workspace = true }
1111
num-traits = { workspace = true }
1212
prost = { workspace = true }
1313
tonic = { workspace = true }
14+
#tonic-prost = { workspace = true }
1415

1516
[build-dependencies]
1617
lenient_semver = { workspace = true }
1718
prost-build = { workspace = true }
1819
semver = { workspace = true }
20+
#tonic-prost-build = { workspace = true }
1921
tonic-build = { workspace = true }
2022

2123
[dev-dependencies]

src/meta/types/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ serde_json = { workspace = true }
2929
state-machine-api = { workspace = true }
3030
thiserror = { workspace = true }
3131
tonic = { workspace = true }
32+
#tonic-prost = { workspace = true }
3233

3334
[build-dependencies]
3435
prost-build = { workspace = true }
3536
tonic-build = { workspace = true }
37+
#tonic-prost-build = { workspace = true }
3638

3739
[dev-dependencies]
3840
anyhow = { workspace = true }

src/query/service/src/servers/flight/flight_service.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ impl FlightService {
7979
builder
8080
};
8181

82-
let incoming = TcpIncoming::new(addr, true, None)
83-
.map_err(|e| ErrorCode::CannotListenerPort(format!("{},{}", e, addr)))?;
82+
// let incoming = TcpIncoming::new(addr, true, None)
83+
// .map_err(|e| ErrorCode::CannotListenerPort(format!("{},{}", e, addr)))?;
84+
let incoming = TcpIncoming::bind(addr)
85+
.map_err(|e| ErrorCode::CannotListenerPort(format!("{},{}", e, addr)))?
86+
.with_nodelay(Some(true))
87+
.with_keepalive(None);
8488
let server = builder
8589
.add_service(
8690
FlightServiceServer::new(flight_api_service)

src/query/service/src/servers/flight_sql/flight_sql_server.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ impl FlightSQLServer {
8686
builder
8787
};
8888

89-
let incoming = TcpIncoming::new(addr, true, None)
90-
.map_err(|e| ErrorCode::CannotListenerPort(format!("{},{}", e, addr)))?;
89+
// let incoming = TcpIncoming::new(addr, true, None)
90+
// .map_err(|e| ErrorCode::CannotListenerPort(format!("{},{}", e, addr)))?;
91+
92+
let incoming = TcpIncoming::bind(addr)
93+
.map_err(|e| ErrorCode::CannotListenerPort(format!("{},{}", e, addr)))?
94+
.with_nodelay(Some(true))
95+
.with_keepalive(None);
9196

9297
let server = builder
9398
.add_service(FlightServiceServer::new(flight_sql_service))

src/query/service/tests/it/parquet_rs/prune_row_groups.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use databend_common_catalog::plan::ParquetReadOptions;
1919
use databend_common_expression::FunctionContext;
2020
use databend_common_expression::TableSchema;
2121
use databend_common_storages_parquet::ParquetPruner;
22+
use parquet::file::metadata::ParquetMetaDataReader;
2223

2324
use super::data::make_test_file_rg;
2425
use super::data::Scenario;
@@ -46,8 +47,9 @@ async fn test_impl_batch(args: &[(Scenario, &str, Vec<usize>)], prune: bool) {
4647
let plan = get_data_source_plan(fixture.new_query_ctx().await.unwrap(), &sql)
4748
.await
4849
.unwrap();
49-
#[allow(deprecated)]
50-
let parquet_meta = parquet::file::footer::parse_metadata(file.as_file()).unwrap();
50+
let parquet_meta = ParquetMetaDataReader::new()
51+
.parse_and_finish(file.as_file())
52+
.unwrap();
5153
let schema = TableSchema::try_from(arrow_schema.as_ref()).unwrap();
5254
let leaf_fields = Arc::new(schema.leaf_fields());
5355

0 commit comments

Comments
 (0)