d0ad381833
* 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>
10 lines
337 B
SQL
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);
|