eyalroz / ssb-dbgen

Star Schema Benchmark data set generator (dbgen) - unified repository

Home Page:http://www.cs.umb.edu/~poneil/StarSchemaB.PDF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lo_orderkey increment from lineorder table

PinaDesu opened this issue · comments

Hi, i'm using your ssb-dbgen to generate data for 5 tables that are required to evaluate a database.

For some reason, when i generated data for 5 tables with scale factor of 1, the auto increment of lo_orderkey is not working, as you can see in the next image.
image.

Just found out what was my problem. While adding the constraints in my database (CockroachDB) there was missing a primary key in lineorder table, lo_linumber. The following command fixes the duplicate keys error ALTER TABLE lineorder ADD PRIMARY KEY(lo_orderkey, lo_linenumber); . This is where i got the information https://seanstuber.com/2017/06/14/setting-up-the-star-schema-benchmark-ssb-in-oracle/

Wait, so - is the generation wrong? Also, what did you mean by "5 tables"?

Hi @eyalroz , i think the generation is not wrong. As i said before there was missing a primary key in lineorder constraint in /doc/ssb.ri at line 22. By five tables i meant, linorder, date, supplier, customer, and part tables. Sorry if my english is a bit confusing.