trinodb / tpch

Port of TPC-H dbgen to Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCALE_BASE for LineItem and PartSupplier

hgschmie opened this issue · comments

The LineItemGenerator uses the OrderGenerator.SCALE_BASE constant (which is 1,500,000) and the PartSupplierGenerator uses the PartGenerator.SCALE_BASE (which is 200,000). According to http://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.3.pdf, these should be 6,000,000 (for LineItem) and 800,000 (for PartSupplier). any reason why the SCALE_BASE values differ from the spec?

Seems PartSupplier uses a magic "four suppliers per part" and the LineItem count is derived from the Orders. See #22 for my actual problem.