Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
87591: roachtest: make window functions deterministic r=DrewKimball a=DrewKimball This commit modifies the sqlsmith logic to add all columns to the `OVER` clause for all window functions except for the ranking functions. This is necessary because all other window/aggregate functions can produce different results for different rows within a peer group. Ordering on all columns ensures that we are ordering on a key, which restricts each peer group to one row (and therefore ensures there is only one possible order within each peer group). This commit also reverts #86742, since window functions should now be deterministic. Fixes #87353 Release note: None Co-authored-by: DrewKimball <[email protected]>
- Loading branch information