lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/selectTableSample.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

10 lines
337 B
SQL

-- TABLESAMPLE ({ integer_expression | decimal_expression } PERCENT)
-- | TABLESAMPLE ( integer_expression ROWS )
-- | TABLESAMPLE ( BUCKET integer_expression OUT OF integer_expression )
SELECT * FROM test TABLESAMPLE (50 PERCENT);
SELECT * FROM test TABLESAMPLE (5 ROWS);
SELECT * FROM test TABLESAMPLE (BUCKET 4 OUT OF 10);