Skip to content

Commit

Permalink
Fix test cases of cherry-pick.
Browse files Browse the repository at this point in the history
  • Loading branch information
avamingli committed Dec 31, 2024
1 parent 4cfaad7 commit e24b737
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/test/regress/expected/gp_recursive_cte.out
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ select id,name from cte;
4 | AAA>B1>C1_2
5 | AAA>B1>C1_3
(9 rows)

-- WTIH RECURSIVE and subquery
with recursive cte (n) as
(
Expand Down
6 changes: 3 additions & 3 deletions src/test/regress/expected/with_optimizer.out
Original file line number Diff line number Diff line change
Expand Up @@ -1964,9 +1964,9 @@ WITH RECURSIVE foo(i) AS
UNION ALL
SELECT i+1 FROM foo WHERE i < 5) AS t
) SELECT * FROM foo;
ERROR: recursive reference to query "foo" must not appear within a subquery
LINE 5: (SELECT i+1 FROM foo WHERE i < 10
^
ERROR: recursive reference to query "foo" must not appear more than once
LINE 7: SELECT i+1 FROM foo WHERE i < 5) AS t
^
WITH RECURSIVE foo(i) AS
(values (1)
UNION ALL
Expand Down
6 changes: 3 additions & 3 deletions src/test/singlenode_regress/expected/with.out
Original file line number Diff line number Diff line change
Expand Up @@ -1948,9 +1948,9 @@ WITH RECURSIVE foo(i) AS
UNION ALL
SELECT i+1 FROM foo WHERE i < 5) AS t
) SELECT * FROM foo;
ERROR: recursive reference to query "foo" must not appear within a subquery
LINE 5: (SELECT i+1 FROM foo WHERE i < 10
^
ERROR: recursive reference to query "foo" must not appear more than once
LINE 7: SELECT i+1 FROM foo WHERE i < 5) AS t
^
WITH RECURSIVE foo(i) AS
(values (1)
UNION ALL
Expand Down

0 comments on commit e24b737

Please sign in to comment.