Skip to content

Commit

Permalink
workload: fix TPC-H generator value of ps_supplycost
Browse files Browse the repository at this point in the history
Prior to this commit, the TPC-H generator was generating
a value between 0 and 10 for ps_supplycost in the partsupp
table. However, the spec calls for a random value in the range
[1.00 .. 1,000.00]. This commit fixes the oversight.

Epic: None
Release note: None
  • Loading branch information
rytaft committed Dec 16, 2022
1 parent b048359 commit 641ab9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/workload/tpch/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (w *tpch) tpchPartSuppInitialRowBatch(
// PS_AVAILQTY random value [1 .. 9,999].
availQtyCol[i] = int16(randInt(rng, 1, 9999))
// PS_SUPPLYCOST random value [1.00 .. 1,000.00].
supplyCostCol[i] = float64(randFloat(rng, 1, 1000, 100))
supplyCostCol[i] = float64(randFloat(rng, 100, 100000, 100))
// PS_COMMENT text string [49,198].
commentCol.Set(i, w.textPool.randString(rng, 49, 198))
}
Expand Down

0 comments on commit 641ab9c

Please sign in to comment.