ClusterBySpec¶
To be removed
This class will be removed when we integrate with OSS Spark's CLUSTER BY implementation.
Creating Instance¶
ClusterBySpec takes the following to be created:
- Column names (
NamedReferences)
ClusterBySpec is created when:
DeltaCatalogis requested to convertTransformsClusterBySpecis requested to apply and fromPropertyDeltaSqlAstBuilderis requested to parse CLUSTER BY clause
Creating ClusterBySpec¶
apply[_: ClassTag](
columnNames: Seq[Seq[String]]): ClusterBySpec
apply creates a ClusterBySpec for the given columnNames (converted to FieldReferences).
No usage found
(Re)Creating ClusterBySpec from Table Property¶
fromProperty(
columns: String): ClusterBySpec
fromProperty creates a ClusterBySpec for the given columns (being a JSON-ified ClusterBySpec).
Note
fromProperty does the opposite to toProperty.
fromProperty is used when:
ClusteredTableUtilsBaseis requested for a ClusterBySpec
Converting ClusterBySpec to Table Property¶
toProperty(
clusterBySpec: ClusterBySpec): (String, String)
toProperty gives a pair of clusteringColumns and the given ClusterBySpec (in JSON format).
Note
toProperty does the opposite to fromProperty.
toProperty is used when:
ClusteredTableUtilsBaseis requested to getClusteringColumnsAsProperty