Skip to content

Commit

Permalink
add trivial sqllogictest
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgapp committed Sep 25, 2023
1 parent 5963014 commit d5b50c0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions datafusion/sqllogictest/test_files/cte.slt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,24 @@ query II
select * from (WITH source AS (select 1 as e) SELECT * FROM source) t1, (WITH source AS (select 1 as e) SELECT * FROM source) t2
----
1 1

query I rowsort
WITH RECURSIVE nodes AS (
SELECT 1 as id
UNION ALL
SELECT id + 1 as id
FROM nodes
WHERE id < 10
)
SELECT * FROM nodes
----
1
10
2
3
4
5
6
7
8
9

0 comments on commit d5b50c0

Please sign in to comment.