TableFeatureProtocolUtils¶
delta.feature Property Prefix¶
TableFeatureProtocolUtils defines the following property prefix for table features:
delta.feature.
The prefix is used when:
DeltaConfigsBaseis requested to validateConfigurations, mergeGlobalConfigs, normalizeConfigKeys, normalizeConfigKeySnapshotis requested to getPropertiesProtocolis requested to assertMetadataContainsNoProtocolPropsTableFeatureProtocolUtilsis requested to propertyKey, getSupportedFeaturesFromTableConfigs, isTableProtocolProperty
spark.databricks.delta.properties.defaults.feature Property Prefix¶
TableFeatureProtocolUtils defines the following prefix for the Spark session properties of table features:
spark.databricks.delta.properties.defaults.feature.
The prefix is used when:
DeltaConfigsBaseis requested to mergeGlobalConfigsTableFeatureProtocolUtilsis requested for the default session property key of a table feature
isTableProtocolProperty¶
isTableProtocolProperty(
key: String): Boolean
isTableProtocolProperty holds true when the given key is one of the following:
- delta.minReaderVersion
- delta.minWriterVersion
- delta.ignoreProtocolDefaults
- The
keystarts with the delta.feature. prefix
isTableProtocolProperty is used when:
DeltaConfigsBaseis requested to mergeGlobalConfigsOptimisticTransactionImplis requested to updateMetadataInternalProtocolis requested to forNewTable
getSupportedFeaturesFromTableConfigs¶
getSupportedFeaturesFromTableConfigs(
configs: Map[String, String]): Set[TableFeature]
getSupportedFeaturesFromTableConfigs...FIXME
getSupportedFeaturesFromTableConfigs is used when:
OptimisticTransactionImplis requested to updateMetadataInternalProtocolis requested to minProtocolComponentsFromMetadata
Property Key of Table Feature¶
propertyKey(
feature: TableFeature): String
propertyKey(
featureName: String): String
propertyKey is the following text:
delta.feature.[featureName]
propertyKey is used when:
DeltaTableis requested to addFeatureSupport
getSupportedFeaturesFromTableConfigs¶
getSupportedFeaturesFromTableConfigs(
configs: Map[String, String]): Set[TableFeature]
getSupportedFeaturesFromTableConfigs takes all the delta.feature.-prefixed keys in the given configs collection and makes sure that all supported or enabled.
enabled Deprecated
enabled is deprecated.
If there is a table feature not supported or there's no table feature by a name, getSupportedFeaturesFromTableConfigs reports an exception.
getSupportedFeaturesFromTableConfigs is used when:
OptimisticTransactionImplis requested to updateMetadataInternalProtocolis requested to minProtocolComponentsFromMetadata
Default Session Property Key of Table Property¶
defaultPropertyKey(
feature: TableFeature): String
defaultPropertyKey(
featureName: String): String
defaultPropertyKey is the following text:
spark.databricks.delta.properties.defaults.feature.[featureName]
defaultPropertyKey is used when:
DeltaErrorsBaseis requested to convertToDeltaRowTrackingEnabledWithoutStatsCollection