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
PR Reviewer Guide 🔍(Review updated until commit 91bfdd2)Here are some key observations to aid the review process:
|
|
Persistent review updated to latest commit 60e3690 |
PR Code Suggestions ✨Latest suggestions up to 91bfdd2 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 6ba546d
Suggestions up to commit 31f8a2a
Suggestions up to commit b9c4c8a
Suggestions up to commit 60e3690
|
|
Persistent review updated to latest commit b9c4c8a |
|
Persistent review updated to latest commit 31f8a2a |
|
Persistent review updated to latest commit 6ba546d |
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 <menwe@amazon.com>
Signed-off-by: Eric Wei <menwe@amazon.com>
Signed-off-by: Eric Wei <menwe@amazon.com>
Signed-off-by: Eric Wei <menwe@amazon.com>
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 <menwe@amazon.com>
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 <menwe@amazon.com>
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 <menwe@amazon.com> Signed-off-by: menwe <menwe@amazon.com>
6ba546d to
91bfdd2
Compare
|
Persistent review updated to latest commit 91bfdd2 |
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