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>
14 lines
481 B
SQL
14 lines
481 B
SQL
-- OFFSET integer_expression
|
|
|
|
-- Skip the first two rows.
|
|
SELECT name, age FROM person ORDER BY name OFFSET 2;
|
|
|
|
-- Skip the first two rows and returns the next three rows.
|
|
SELECT name, age FROM person ORDER BY name LIMIT 3 OFFSET 2;
|
|
|
|
-- A function expression as an input to OFFSET.
|
|
SELECT name, age FROM person ORDER BY name OFFSET length('SPARK');
|
|
|
|
-- A non-foldable expression as an input to OFFSET is not allowed.
|
|
SELECT name, age FROM person ORDER BY name OFFSET length(name);
|