Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add more internal local benchmark test cases #17140

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion benchmark/clickbench/benchmark_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ cluster_id = "${BENCHMARK_ID}"
[[query.users]]
name = "root"
auth_type = "no_password"
default_storage_format = 'parquet'
[meta]
endpoints = ["127.0.0.1:9191"]
client_timeout_in_second = 60
Expand All @@ -61,7 +62,7 @@ export BENDSQL_DSN="databend://root:@localhost:8000/${BENCHMARK_DATASET}?sslmode

# Create table
if [[ -f "${BENCHMARK_DATASET}/create_local.sql" ]]; then
echo "Creating table for benchmark with native storage format..."
echo "Creating table for benchmark with parquet storage format..."
bendsql <"${BENCHMARK_DATASET}/create_local.sql"
fi

Expand Down
2 changes: 1 addition & 1 deletion benchmark/clickbench/internal/queries/01.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
select name from system.tables where name='t_1';
select name from system.tables where name in ('t_1', 't_2');
2 changes: 1 addition & 1 deletion benchmark/clickbench/internal/queries/02.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
select name from system.tables where name in ('t_1', 't_2');
select name from system.tables_with_history where name in ('t_1', 't_2');
2 changes: 1 addition & 1 deletion benchmark/clickbench/internal/queries/03.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
select name from system.tables_with_history where name in ('t_1', 't_2');
select (number::string)::Int from numbers(100000000) ignore_result;
2 changes: 1 addition & 1 deletion benchmark/clickbench/internal/queries/04.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
select (number::string)::Int from numbers(100000000) ignore_result;
select count() from numbers(100000000);
1 change: 1 addition & 0 deletions benchmark/clickbench/internal/queries/05.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select number % 3 a, number % 4 b, number % 5 c, min(number), max(number), sum(number) from numbers(100000000) group by a,b,c;
1 change: 1 addition & 0 deletions benchmark/clickbench/internal/queries/06.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select number % 3 a, number % 4 b, number % 5 c, min(cast(number as Decimal(15,2))), max(cast(number as Decimal(15,2))), sum(cast(number as Decimal(45,2))) from numbers(100000000) group by a,b,c;
1 change: 1 addition & 0 deletions benchmark/clickbench/internal/queries/07.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select number % 300 a, (number % 400)::string b, number % 500 c, min(cast(number as Decimal(15,2))), max(cast(number as Decimal(15,2))), sum(cast(number as Decimal(45,2))) from numbers(100000000) group by a,b,c ignore_result;
1 change: 1 addition & 0 deletions benchmark/clickbench/internal/queries/08.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select number % 1000 a, min(cast(number as Decimal(15,2))), max(cast(number as Decimal(15,2))), sum(cast(number as Decimal(45,2))) from numbers(100000000) where number % 100 != 0 group by a ignore_result;
1 change: 1 addition & 0 deletions benchmark/clickbench/internal/queries/09.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select max(number) over (partition by number % 3 order by number), rank() over (partition by number % 3 order by number) from numbers(20000000) where number % 100 != 0 ignore_result;
Loading