Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test TestDistributedEngineOnlyQueries.testAssignUniqueId fails: incorrect results #21630

Closed
findepi opened this issue Apr 19, 2024 · 1 comment · Fixed by #21631
Closed

Test TestDistributedEngineOnlyQueries.testAssignUniqueId fails: incorrect results #21630

findepi opened this issue Apr 19, 2024 · 1 comment · Fixed by #21631
Labels

Comments

@findepi
Copy link
Member

findepi commented Apr 19, 2024

Test TestDistributedEngineOnlyQueries.testAssignUniqueId is flaky when the whole class is run.
With @RepeatedTest(1000) is fails 99% the time on current master. The test query produces incorrect results.

Example failure (the actual number returned by the test query varies)

java.lang.AssertionError: For query 20240419_104337_00031_xxkai: 
 SELECT count(*) FROM (SELECT * FROM (   SELECT (SELECT count(*) WHERE c = 1)    FROM (SELECT CASE orderkey WHEN 1 THEN orderkey ELSE 1 END        FROM (SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem UNION ALL SELECT * FROM lineitem)) o(c)) result(a) WHERE a = 1)
not equal
Actual rows (up to 100 of 1 extra rows shown, 1 rows in total):
    [1484773]
Expected rows (up to 100 of 1 missing rows shown, 1 rows in total):
    [1504375]
@findepi
Copy link
Member Author

findepi commented Apr 19, 2024

The problem did not exist before #21583, so no released version is affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant