lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/selectDistributeBy.sql

6 lines
247 B
MySQL
Raw Normal View History

-- 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;