Clustered By
Create table option
Description
CLUSTERED BY
is an optional clause that controls table clustering. For more information, please refer to Bucketed Sorted Tables.
Clustered by option is supported by Snowflake by Cluster By Clause.
Grammar Syntax
Sample Source
Hive
Snowflake
Known Issues
Clustering in SnowFlake is defined by Clause
CLUSTER BY
that not only allows the use of columns for Clustering Keys as in Hive but also column Expressions. You can find more information on Cluster Tables and Cluster Keys definition in: (Snowflake) User Guide (Clustering Keys & Clustered Tables).In Snowflake the number of buckets in which the data will be grouped is determined automatically.
Related EWIs
MSC-HVXXXX: THE BUCKET NUMBER IS AUTOMATICALLY DEFINED IN THE SNOWFLAKE CLUSTER BY.
MSC-HVXXXX: THE SORTED BY CLAUSE IS NOT SUPPORTED IN SNOWFLAKE.
Last updated