lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/selectInlineTable.sql
Frank d0ad381833
test: spark sql query syntax unit test (#173)
* test: add spark query unit test and check grammar

* test: add select explain、lateralSubQuery、transform unit test

* chore: fileName exchange

---------

Co-authored-by: dilu <dilu@dtstack.com>
2023-10-10 16:25:43 +08:00

11 lines
348 B
SQL

-- VALUES ( expression [ , ... ] ) [ table_alias ]
-- single row, without a table alias
SELECT * FROM VALUES ("one", 1);
-- three rows with a table alias
SELECT * FROM VALUES ("one", 1), ("two", 2), ("three", null) AS data(a, b);
-- complex types with a table alias
SELECT * FROM VALUES ("one", array(0, 1)), ("two", array(2, 3)) AS data(a, b);