lo_orderkey increment from lineorder table
PinaDesu opened this issue · comments
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.