Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42292: workload/tpch: fix the check of the output on TPCH workload r=yuzefovich a=yuzefovich Previously, when doing the check that TPCH queries return the expected output, we would round down both the expected and the actual float values to a hundredth, and then we would confirm that the rounded values differ by no more than 0.01 (this is what the spec requires). However, this can be problematic in some scenarios. It is possible, for example, for two values 0.601 and 0.609 be rounded in such a way that they are represented by 0.599998 and 0.610001, respectively. Then, when the check that the difference is no greater than 0.01 would fail although the numbers are correct (according to the spec). Now this is fixed by rounding to a thousandth. It turns out that this was the problem that I occasionally observed when running TPCHVec roachtest - it would show up as "exit status 1" because of the failed check. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information