← Back to Pull requests

Add TPC-H update sets (dbgen -U) and query generation (qgen) #644

Closed
neumannt closed this pull request without merging on Oct 23, 2026 20:42 UTC
View on GitHub
neumannt neumannt commented on Oct 22, 2026 14:59 UTC
Author

This commit adds the functionality to generate the update sets and the query sets for TPC-H. Both have been validated against TPC-H 2.17 for scales factors 0.01 to 10000, and produce byte identical results.

Diff: 5555 lines (+4425 / -1130) across 62 files Reviewer: None requested Review duration: 1782m
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.84) × (1 − Review Confidence (0.67)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.84 · 5555 lines diff across 62 files
0.84
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.40 · 5 substantive comment(s)
0.40
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
66%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.400
No Reviewer Assigned no_reviewer_assigned
0.120
Mass File Touch mass_file_touch
0.080
Real PR Conversation Timeline
6 items
kevinjqliu kevinjqliu commented on Oct 22, 2026 15:47 UTC
Contributor

Hi @neumannt looks like this contains a lot of changes, could you explain what is it you're trying to achieve and perhaps break it down for easier review?

neumannt neumannt commented on Oct 22, 2026 16:02 UTC
Author

Hi @kevinjqliu,

I can break this into individual commits if you prefer. This basically does three things: a) implement the update stream generation from the TPC-H toolkit, b) implement the query set from the same toolkit, and c) implement a test/comparison framework to check that the results are byte identical.

The reason why the code is not as nicely contained as I would like to have it is that I did not want to duplicate code, thus I had to refactor the existing code a bit to allow for using it directly. I could undo that, which makes the change much better localized, but which leads to some code duplication.

Would you prefer it as, e.g., three commits, updates, queries, comparisons?

neumannt neumannt commented on Oct 22, 2026 20:32 UTC
Author

Hi @kevinjqliu, I have broken this now into three different commits, which makes it easier to review.

kevinjqliu kevinjqliu commented on Oct 23, 2026 20:25 UTC
Contributor

hey @neumannt thanks for breaking this into commits. its still ~4.4k lines across 62 files though, which is a lot to review at once.

there are a lot of separate changes in here, such as update sets, qgen, the Q11 answer fix, refactoring order generation, and new test fixtures and compare scripts. these should be their own PRs so we can review and merge them one at a time, with tests in the same PR.

per our contributing guide, could you open an issue first describing the specific changes youd like to see in the repo and why? id like to agree on the approach there before getting into the code.

ill close this one once the smaller PRs are up. thanks!

neumannt neumannt commented on Oct 23, 2026 20:42 UTC
Author

I will try to do that in the next weeks or so.

Reviewers
None requested
Assignees
neumannt neumannt
Labels
risk: low confidence: 66.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 83.5% (HIGH) · Higher = larger blast radius
83.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 66.8% · Lower = rushed or shallow review
66.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 27.7% · Safe to merge
27.7%