Skip to content

Commit b1a62c6

Browse files
wangyumGitHub Enterprise
authored andcommitted
[HADP-55029][FOLLOW-UP] Fix flaky test in qualify.sql (apache#562)
1 parent 061cc86 commit b1a62c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sql/core/src/test/resources/sql-tests/analyzer-results/qualify.sql.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,6 @@ SELECT val
294294
FROM testdata
295295
WHERE val >= 0
296296
QUALIFY row_number() OVER (partition BY val_date ORDER BY RAND()) = 1
297-
LIMIT 1
297+
LIMIT 0
298298
-- !query analysis
299299
[Analyzer test output redacted due to nondeterminism]

sql/core/src/test/resources/sql-tests/inputs/qualify.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ SELECT val
8484
FROM testdata
8585
WHERE val >= 0
8686
QUALIFY row_number() OVER (partition BY val_date ORDER BY RAND()) = 1
87-
LIMIT 1;
87+
LIMIT 0;

sql/core/src/test/resources/sql-tests/results/qualify.sql.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ SELECT val
210210
FROM testdata
211211
WHERE val >= 0
212212
QUALIFY row_number() OVER (partition BY val_date ORDER BY RAND()) = 1
213-
LIMIT 1
213+
LIMIT 0
214214
-- !query schema
215215
struct<val:int>
216216
-- !query output
217-
1
217+

0 commit comments

Comments
 (0)