Repository navigation
feat: add native TPC-H workload tools for MO and DuckDB - #30588
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
|
mo-bot review · Commit: "interrupted" |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 211e028955096447270885cf73ac97c427850e3c
Assessment: request_changes
Reviewed the complete 14-file delta. The standalone module and shared typed-consumption path are reasonable, but input identity and LIMIT qualification have confirmed correctness gaps. Production SQL paths and the main dependency graph are unchanged.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
-
P2
optools/tpch_compare/worker.go:118: Run operation=verify after a table input and the corresponding database contents have changed, while dataset.json retains the original input hash.
Impact: Verification succeeds and certifies the original dataset identity although the checked data differs. Verify input hashes for the verify operation, or validate them while consuming the files.
Evidence: loadDataset enables input hashing only for operation=load. TestReviewVerifyRejectsChangedInputIdentity reproduced this through runWorker with a real DuckDB fixture: FileID.verify rejected the changed region.tbl, but runWorker returned success with cleanup=complete and the original manifest identity. -
P2
optools/tpch_compare/main.go:118: Compare two qualification Q3 captures containing 11 identical, correctly ordered rows, despite the manifest specifying LIMIT 10.
Impact: The CLI reports a successful comparison for results that violate the known query contract. Enforce qualification LIMIT bounds, distinguish unlimited diagnostic receipts, and connect the existing membership validator to the comparison path.
Evidence: TestReviewCompareRejectsRowsBeyondQualificationLimit reproduced the false pass through cli. compareCaptures never checks q.Limit, and validateLimit has only test callers. A separate control proved both legal tied subsets pass validateLimit while the CLI rejects them without a way to supply the unlimited-reference proof.
Validation:
-
Preflight passed; the pinned DuckDB native dependency graph and task-local Go environment were inspected, and go mod verify passed.
-
All nine existing module tests passed through the assigned test-exec. Receipt: checks/1792404102901743293-4.json; log: module-tests.log.
-
An added diagnostic test file, supplied through a Go overlay without changing source, reproduced both findings. Two regression assertions failed and the LIMIT control passed. Receipt: checks/1792404237359035433-3.json; log: review-regressions-final.log.
-
Source fingerprints, commands, exits and retained logs were reconciled in /home/xupeng/.local/state/mo-bot/jobs/9ae8df51c6f28cca82fd5f3b/attempt-1/review-evidence-audit.json. The frozen checkout remains clean.
Limitations:
-
The supplied evidence reports successful harness CI, but local_validation is empty. The PR's claimed real SF1 runs lack retained artifact pointers and were not independently verified; local checks used small fixtures.
-
Linked issue #30569's body was not supplied. Its requirements were assessed through the PR description and included design.
-
No performance campaign was run. Capture and comparison overhead remains unmeasured; controlled measurement and profiling are follow-up scope.
|
Addressed both findings from the request-changes assessment in commit 76a0815 (current main merged in 345d7fa).
Both original false passes reproduced before the patch. All 11 module tests, including 22 CLI scenarios, pass; race, vet, repository-configured lint, package-graph verification, and the pre-push gate pass. The revised comparator also passed all 22 retained real SF1 captures. The PR description now includes their local paths and SHA-256 identities; those artifacts are local to the benchmark workstation. |
Merge Queue Status
This pull request spent 15 minutes 26 seconds in the queue, with no time running CI. ReasonThe pull request #30588 has been manually updated Requeued — the merge queue status continues in this comment ↓. |
|
mo-bot review · Commit: Review belongs to an older commit; it is not a review of the current head. |
Merge Queue Status
This pull request spent 1 minute 8 seconds in the queue, with no time running CI. ReasonThe pull request #30588 has been manually updated Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 6 hours 35 minutes 37 seconds in the queue, including 48 minutes 12 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #30569.
What this PR does / why we need it:
Add a standalone native TPC-H workload module for MatrixOne and DuckDB. Prepare one recorded DBGEN/QGEN dataset per scale and render the same qualification query parameters for both engines. The canonical schema includes the PARTSUPP and LINEITEM composite primary keys, and Q15 retains its create/select/drop view lifecycle with private names and failure cleanup.
Use the MO MySQL driver and the pinned official DuckDB 1.5.6 driver with one bounded typed result-consumption path. Drain results through EOF, propagate cursor and cleanup errors, record native versions and settings, and retain dataset, executable and capture identities. Enable parallel native CSV reading explicitly in both engines and record schema, loading, statistics and checkpoint time separately. Benchmark loading ends after checkpointing; it performs no input rehashing, table-content scans, catalog comparisons or relationship checks. Every MO connection sets
agg_spill_memto 2 GiB and records its effective value. This worker threshold operates within the original total application memory allowance.Keep correctness tests and explicitly requested diagnostic commands separate from benchmark execution. These helpers cover native schema domains and key order, exact strings and decimal expressions, declared division tolerances, duplicate multiplicity, result ordering, legal LIMIT ties and independent SF1 reference rules. They are never an automatic benchmark gate. Include the methodology and a focused CI job for this isolated module; engine execution code and MO's main dependency graph are unchanged.
Validation
agg_spill_mem=2147483648; its SF100 Q18 operator profile reported no spill under the existing eight-core / 32 GiB envelope. This is separate diagnostic evidence, not a new full-campaign score.Design
The methodology is in
docs/design/mo-duckdb-tpch-benchmark.md, revision 0.6. The user explicitly requested removing correctness verification from benchmark scripts. No replacement checksum or sampling pass is introduced. Generated datasets, databases and raw captures remain outside Git.