test(integ-test): stabilize deterministic fixtures across shards - #5730
test(integ-test): stabilize deterministic fixtures across shards#5730mengweieric wants to merge 7 commits into
Conversation
Select fixture rows by unique keys, compare unordered collections as multisets, and use numeric tolerances where distributed accumulation or encoding is lossy. Keep exact schema, cardinality, and source-value assertions. Signed-off-by: Eric Wei <[email protected]>
PR Reviewer Guide 🔍(Review updated until commit 6ba546d)Here are some key observations to aid the review process:
|
Signed-off-by: Eric Wei <[email protected]>
Signed-off-by: Eric Wei <[email protected]>
|
Persistent review updated to latest commit 60e3690 |
PR Code Suggestions ✨Latest suggestions up to 6ba546d Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 31f8a2a
Suggestions up to commit b9c4c8a
Suggestions up to commit 60e3690
|
Signed-off-by: Eric Wei <[email protected]>
|
Persistent review updated to latest commit b9c4c8a |
Q10 selected its single top row with sort on an aggregated double alone, so a tie would let head 1 pick either row. Sort on c_custkey as well to pin the selected row on any shard layout. Signed-off-by: Eric Wei <[email protected]>
A JSONArray or JSONObject on only one side fell through to a toString comparison, so a container whose serialized form equalled a scalar string matched incorrectly. Reject that case and cover it with tests. Signed-off-by: Eric Wei <[email protected]>
|
Persistent review updated to latest commit 31f8a2a |
The two coalesce tests now sort by the unique age field before applying head, so they no longer depend on unstable encounter order. Remove the HEAD_WITHOUT_STABLE_SORT capability gate and run them on the analytics-engine route again. Signed-off-by: Eric Wei <[email protected]> Signed-off-by: menwe <[email protected]>
|
Persistent review updated to latest commit 6ba546d |
Summary
A set of integration tests selected rows through
head,limit, shard-local representative choice, or unordered collection output, then asserted exact single-shard results.This change selects intended fixture rows with unique keys, compares unordered collections as multisets, and uses numeric tolerances only for distributed floating-point or geo-point encoding differences. Schema, cardinality, grouping, source-value, and command-specific assertions remain exact.
No production behavior is modified.
Validation
spotlessCheck,compileTestJava, andgit diff --checkpass