Skip to content

Commit f8c5419

Browse files
authored
chore: bump tokio from 1.26.0 to 1.35.0 (#13967)
* chore: bump tokio from 1.26.0 to 1.35.0 * fix 07_0002_insert_with_stage_deduplicate.sh test add wait_time_secs to wait the curl return
1 parent ae9dda9 commit f8c5419

File tree

4 files changed

+44
-21
lines changed

4 files changed

+44
-21
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ reqwest = { version = "0.11.19", default-features = false, features = [
196196
] }
197197

198198
# runtime
199-
tokio = { version = "1.26.0", features = ["full"] }
199+
tokio = { version = "1.35.0", features = ["full"] }
200200

201201
# backtrace
202202
async-backtrace = { git = "https://github.com/zhang2014/async-backtrace.git", rev = "e7e1b5f" }

src/bendpy/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ name = "databend"
1515
crate-type = ["cdylib"]
1616

1717
[dependencies]
18-
pyo3 = { version = "0.19.1", features = ["extension-module", "abi3", "abi3-py37"] }
19-
uuid = { version = "1.1.2" }
2018
# Workspace dependencies
2119
arrow = { workspace = true }
2220
arrow-schema = { workspace = true }
@@ -33,6 +31,8 @@ databend-query = { path = "../query/service", features = [
3331
], default-features = false }
3432

3533
# # Crates.io dependencies
36-
ctor = "0.1.26"
37-
tokio = { version = "1.24", features = ["macros", "rt", "rt-multi-thread", "sync"] }
34+
ctor = "0.2.5"
35+
pyo3 = { version = "0.19.1", features = ["extension-module", "abi3", "abi3-py37"] }
36+
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread", "sync"] }
3837
tokio-stream = "0.1.10"
38+
uuid = { version = "1.1.2" }

tests/suites/1_stateful/07_stage_attachment/07_0002_insert_with_stage_deduplicate.sh

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,35 @@ echo "CREATE STAGE s1 FILE_FORMAT = (TYPE = CSV)" | $BENDSQL_CLIENT_CONNECT
2424
echo "list @s1" | $BENDSQL_CLIENT_CONNECT | awk '{print $1}'
2525

2626
## Insert with stage use http API
27-
curl -s -u root: -XPOST "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/query" --header 'Content-Type: application/json' --header 'X-DATABEND-DEDUPLICATE-LABEL: insert1' -d '{"sql": "insert into sample (Id, City, Score) values", "stage_attachment": {"location": "@s1/sample.csv"}}' | jq -r '.stats.scan_progress.bytes, .stats.write_progress.bytes, .error'
27+
curl -s -u root: -XPOST "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/query" \
28+
--header 'Content-Type: application/json' \
29+
--header 'X-DATABEND-DEDUPLICATE-LABEL: insert1' \
30+
-d '{
31+
"sql": "insert into sample (Id, City, Score) values",
32+
"stage_attachment": {
33+
"location": "@s1/sample.csv"
34+
},
35+
"pagination": {
36+
"wait_time_secs": 3
37+
}
38+
}' | jq -r '.stats.scan_progress.bytes, .stats.write_progress.bytes, .error'
2839

2940
echo "select * from sample" | $BENDSQL_CLIENT_CONNECT
3041

3142
## Insert again with the same deduplicate_label will have no effect
32-
curl -s -u root: -XPOST "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/query" --header 'Content-Type: application/json' --header 'X-DATABEND-DEDUPLICATE-LABEL: insert1' -d '{"sql": "insert into sample (Id, City, Score) values", "stage_attachment": {"location": "@s1/sample.csv"}}' | jq -r '.stats.scan_progress.bytes, .stats.write_progress.bytes, .error'
43+
curl -s -u root: -XPOST "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/query" \
44+
--header 'Content-Type: application/json' \
45+
--header 'X-DATABEND-DEDUPLICATE-LABEL: insert1' \
46+
-d '{
47+
"sql": "insert into sample (Id, City, Score) values",
48+
"stage_attachment": {
49+
"location": "@s1/sample.csv"
50+
},
51+
"pagination": {
52+
"wait_time_secs": 3
53+
}
54+
}' | jq -r '.stats.scan_progress.bytes, .stats.write_progress.bytes, .error'
55+
3356

3457
echo "select * from sample" | $BENDSQL_CLIENT_CONNECT
3558

0 commit comments

Comments
 (0)