Skip to content

Commit eb7c05d

Browse files
committed
Set rust version
1 parent a33f332 commit eb7c05d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
- uses: actions/checkout@v4
3636
- name: Setup Rust Toolchain
3737
uses: ./.github/actions/setup-builder
38+
with:
39+
rust-version: "1.86.0"
3840
- run: cargo clippy --all-targets --all-features -- -D warnings
3941

4042
benchmark-lint:
@@ -43,6 +45,8 @@ jobs:
4345
- uses: actions/checkout@v4
4446
- name: Setup Rust Toolchain
4547
uses: ./.github/actions/setup-builder
48+
with:
49+
rust-version: "1.86.0"
4650
- run: cd sqlparser_bench && cargo clippy --all-targets --all-features -- -D warnings
4751

4852
compile:

sqlparser_bench/benches/sqlparser_bench.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,25 @@ fn basic_queries(c: &mut Criterion) {
4545

4646
let large_statement = {
4747
let expressions = (0..1000)
48-
.map(|n| format!("FN_{n}(COL_{n})"))
48+
.map(|n| format!("FN_{}(COL_{})", n, n))
4949
.collect::<Vec<_>>()
5050
.join(", ");
5151
let tables = (0..1000)
52-
.map(|n| format!("TABLE_{n}"))
52+
.map(|n| format!("TABLE_{}", n))
5353
.collect::<Vec<_>>()
5454
.join(" JOIN ");
5555
let where_condition = (0..1000)
56-
.map(|n| format!("COL_{n} = {n}"))
56+
.map(|n| format!("COL_{} = {}", n, n))
5757
.collect::<Vec<_>>()
5858
.join(" OR ");
5959
let order_condition = (0..1000)
60-
.map(|n| format!("COL_{n} DESC"))
60+
.map(|n| format!("COL_{} DESC", n))
6161
.collect::<Vec<_>>()
6262
.join(", ");
6363

6464
format!(
65-
"SELECT {expressions} FROM {tables} WHERE {where_condition} ORDER BY {order_condition}",
65+
"SELECT {} FROM {} WHERE {} ORDER BY {}",
66+
expressions, tables, where_condition, order_condition
6667
)
6768
};
6869

0 commit comments

Comments
 (0)