Clustered By
Create table option
Description
Grammar Syntax
clustered_by :=
CLUSTERED BY (col_name, ...)
[SORTED BY (col_name [ASC|DESC], ...)]
INTO num_buckets BUCKETSSample Source
Hive
CREATE TABLE clustered_table
(
customer_id INT,
transaction_amount NUMERIC
)
CLUSTERED BY (customer_id) SORTED BY (transaction_amount ASC) INTO 32 BUCKETS;Snowflake
Known Issues
Related EWIs
Last updated
Was this helpful?