Skip to content

Add sort tpch SQL benchmark#22814

Open
Omega359 wants to merge 4 commits into
apache:mainfrom
Omega359:sql-benchmarks/sort_tpch
Open

Add sort tpch SQL benchmark#22814
Omega359 wants to merge 4 commits into
apache:mainfrom
Omega359:sql-benchmarks/sort_tpch

Conversation

@Omega359

@Omega359 Omega359 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Part of #21706

Rationale for this change

Continue work on sql benchmark migration.

What changes are included in this PR?

sort_tpch sql benchmark

Are these changes tested?

Yes

BENCH_NAME=sort_tpch cargo bench --bench sql
BENCH_NAME=sort_tpch BENCH_SIZE=10 cargo bench --bench sql
BENCH_NAME=sort_tpch LIMIT=true cargo bench --bench sql
BENCH_NAME=sort_tpch BENCH_SIZE=10 LIMIT=true cargo bench --bench sql

Are there any user-facing changes?

No

@Omega359 Omega359 marked this pull request as ready for review June 9, 2026 02:05
Comment thread benchmarks/sql_benchmarks/sort_tpch/init/load.sql Outdated
SELECT l_linenumber, l_suppkey, l_orderkey
FROM lineitem
ORDER BY l_linenumber, l_suppkey, l_orderkey
${LIMIT:-false|LIMIT 100| }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to document these env vars?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they're documented in the sql_benchmarks/README.md but I'd have to check

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some that are shared (LIMIT makes sense as shared) and some that are per benchmark. I have seen them documented, but I'm not sure if we're documenting which global ones apply to which benchmarks (i.e. what options each bench supports). As in: without looking at the actual benchmark code I wouldn't know that this benchmark accepts / respects LIMIT.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This likely should be addressed as part of #21935

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants