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 (
NamedReference
s)
ClusterBySpec
is created when:
DeltaCatalog
is requested to convertTransformsClusterBySpec
is requested to apply and fromPropertyDeltaSqlAstBuilder
is 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 FieldReference
s).
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:
ClusteredTableUtilsBase
is 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:
ClusteredTableUtilsBase
is requested to getClusteringColumnsAsProperty