Repository navigation
Conversation
|
Workflow [PR], commit [f26f160] Summary: ❌
See #99204 (comment) to understand why test failure is expected AI Review1) SummaryThis PR adds full TPC-DS correctness coverage (99 stateless shell tests with references), a shared settings library, and hooks to pre-create TPC-DS SF1 tables via 2) Missing context (if any)
3) Findings (by severity)Blockers
Majors
4) Tests & Evidence
5) ClickHouse Compliance Checklist (Yes/No + short note)
6) Performance & Safety Notes
7) User-Lens Review
8) Final Verdict
|
Instead of having same definitions twice
By accumulating settings from test/benchmarks/settings.json using .lib file, and then referring to it in the tests
If some queries return unexpected result (which is now expected by .reference file) or have alternative formulation, the comments now clarify that and link the issue
TPC-DS queries scan large tables, exceeding the default row limit in CI
no-replicated-database: the "datasets" database is not created with "DatabaseReplicated", because "prepare_stateful_data" is skipped entirely for replicated setups ("ci/jobs/scripts/clickhouse_proc.py:686").
long: using it in 6 slow queries (q04, q09, q14, q23, q50, q69) rather than "no-flaky-check" so the tests still run in flaky validation.
|
The Stateless tests (amd_binary, flaky check) failure is likely due to us running 99 times × 50 runs each in the flaky check. This generates millions of It's unlikely we will ever run all 99 queries together in a flaky check again, so the error can be ignored. I can enable |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
rschu1ze
left a comment
There was a problem hiding this comment.
Lgtm, thanks.
As a follow-up question, would it be possible to introduce a similar correctness test for TPC-H as well?
|
@rschu1ze yes, will do! UPD: in a separate PR :) |

Add TPC-DS correctness tests to CI. All 99 queries run against the standard SF1 dataset via web disk and are checked against reference output. The TPC-DS SF1 dataset is now lazily loaded into the
datasetsdatabase, making it available for use in other tests too. Known ClickHouse issues are documented in the affected test files (#94683, #94858, #94976, #94671, #95168).Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add correctness tests for all 99 TPC-DS queries.
Note
Medium Risk
Primarily adds heavy CI coverage (TPC-DS dataset loading + many new query tests) which may increase CI runtime/flakiness and depends on external S3/web-disk availability, but does not change production query engine logic.
Overview
Adds a new CI step to provision the TPC-DS SF1 dataset into the
datasetsdatabase by runningtests/docker_scripts/create_tpcds.sh, which rewrites the benchmarkinit.sqlto createMergeTreetables that read data from an S3-backed web disk.Introduces a new stateless correctness test suite (
04033_tpc_ds_*) that runs TPC-DS queries with shared settings fromtests/benchmarks/tpc-ds/settings.json(including a higher--max_rows_to_read) and validates results against new.referenceoutputs; some queries are taggedlong/skipped and document known issues.Wires dataset creation into existing CI/stress setup paths (
clickhouse_proc.pyandstress_runner.sh) so thedatasetsschema is available for these tests (and others) during runs.Written by Cursor Bugbot for commit f26f160. This will update automatically on new commits. Configure here.
Version info
26.3.1.695