Skip to content

ClusteredTableUtilsBase (ClusteredTableUtils)

clusteringColumns

ClusteredTableUtilsBase defines clusteringColumns value for the name of the table property with the clustering columns of a delta table.

clusteringColumns is used when:

Clustering Provider

clusteringProvider: String

clusteringProvider is always liquid.


clusteringProvider is used when:

removeClusteringColumnsProperty

removeClusteringColumnsProperty(
  configuration: Map[String, String]): Map[String, String]

removeClusteringColumnsProperty...FIXME


removeClusteringColumnsProperty is used when:

Domain Metadata

getDomainMetadataOptional(
  table: CatalogTable,
  txn: OptimisticTransaction): Option[DomainMetadata] // (1)!
getDomainMetadataOptional(
  clusterBySpecOpt: Option[ClusterBySpec],
  txn: OptimisticTransaction): Option[DomainMetadata]
  1. Uses getClusterBySpecOptional with the given CatalogTable (Spark SQL)

getDomainMetadataOptional validateClusteringColumnsInStatsSchema in the given ClusterBySpec, if specified.

getDomainMetadataOptional createDomainMetadata with the column names (in the given ClusterBySpec).


getDomainMetadataOptional is used when:

Creating DomainMetadata

createDomainMetadata(
  clusteringColumns: Seq[ClusteringColumn]): DomainMetadata

createDomainMetadata creates a ClusteringMetadataDomain from the given ClusteringColumns and converts it to a DomainMetadata.

getClusterBySpecOptional

getClusterBySpecOptional(
  table: CatalogTable): Option[ClusterBySpec]

getClusterBySpecOptional...FIXME


getClusterBySpecOptional is used when:

getClusteringColumnsAsProperty

getClusteringColumnsAsProperty(
  maybeClusterBySpec: Option[ClusterBySpec]): Option[(String, String)]

getClusteringColumnsAsProperty...FIXME


getClusteringColumnsAsProperty is used when:

getTableFeatureProperties

getTableFeatureProperties(
  existingProperties: Map[String, String]): Map[String, String]

getTableFeatureProperties...FIXME


getTableFeatureProperties is used when:

isSupported

isSupported(
  protocol: Protocol): Boolean

isSupported requests the given Protocol to isFeatureSupported with ClusteringTableFeature.


isSupported is used when:

validatePreviewEnabled

validatePreviewEnabled(
  protocol: Protocol): Unit
validatePreviewEnabled(
  maybeClusterBySpec: Option[ClusterBySpec]): Unit
Procedure

validatePreviewEnabled is a procedure (returns Unit) so what happens inside stays inside (paraphrasing the former advertising slogan of Las Vegas, Nevada).

validatePreviewEnabled...FIXME


validatePreviewEnabled is used when: