Add TPC-H update sets (dbgen -U) and query generation (qgen) #644
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?
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?
Hi @kevinjqliu, I have broken this now into three different commits, which makes it easier to review.
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!
I will try to do that in the next weeks or so.
neumannt
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.