Skip to content

Commit 30f8ee1

Browse files
committed
Rebase
1 parent 39fee37 commit 30f8ee1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

datafusion/sqllogictest/test_files/table_functions.slt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,3 +482,15 @@ SELECT * FROM range(DATE '2023-01-01', DATE '2023-01-02', INTERVAL '-1' DAY)
482482

483483
query error DataFusion error: Error during planning: range function with dates requires exactly 3 arguments
484484
SELECT * FROM range(DATE '2023-01-01', DATE '2023-01-03')
485+
486+
# Table function as relation
487+
statement ok
488+
CREATE OR REPLACE TABLE json_table (c INT) AS VALUES (1), (2);
489+
490+
query II
491+
SELECT c, f.* FROM json_table, LATERAL generate_series(1,2) f;
492+
----
493+
1 1
494+
1 2
495+
2 1
496+
2 2

0 commit comments

Comments
 (0)