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>
6 lines
247 B
SQL
6 lines
247 B
SQL
-- DISTRIBUTE BY { expression [ , ... ] }
|
|
|
|
-- Produces rows clustered by age. Persons with same age are clustered together.
|
|
-- Unlike `CLUSTER BY` clause, the rows are not sorted within a partition.
|
|
SELECT age, name FROM person DISTRIBUTE BY age;
|