CoordinatedCommitsUtils¶
getCommitsFromCommitCoordinatorWithUsageLogs¶
getCommitsFromCommitCoordinatorWithUsageLogs(
deltaLog: DeltaLog,
tableCommitCoordinatorClient: TableCommitCoordinatorClient,
catalogTableOpt: Option[CatalogTable],
startVersion: Long,
versionToLoad: Option[Long],
isAsyncRequest: Boolean): GetCommitsResponse
getCommitsFromCommitCoordinatorWithUsageLogs...FIXME
getCommitsFromCommitCoordinatorWithUsageLogs is used when:
SnapshotManagementis requested to listDeltaCompactedDeltaCheckpointFilesAndLatestChecksumFile
commitFilesIterator¶
commitFilesIterator(
deltaLog: DeltaLog,
catalogTableOpt: Option[CatalogTable],
startVersion: Long): Iterator[(FileStatus, Long)]
commitFilesIterator...FIXME
commitFilesIterator is used when:
DeltaLogis requested to getChangeLogFiles
getCommitCoordinatorClient¶
getCommitCoordinatorClient(
spark: SparkSession,
deltaLog: DeltaLog, // Used for logging
metadata: Metadata,
protocol: Protocol,
failIfImplUnavailable: Boolean): Option[CommitCoordinatorClient]
getCommitCoordinatorClient...FIXME
getCommitCoordinatorClient is used when:
OptimisticTransactionImplis requested to registerTableForCoordinatedCommitsIfNeededCoordinatedCommitsUtilsis requested to getTableCommitCoordinator
getTableCommitCoordinator¶
getTableCommitCoordinator(
spark: SparkSession,
deltaLog: DeltaLog, // Used for logging
snapshotDescriptor: SnapshotDescriptor,
failIfImplUnavailable: Boolean): Option[TableCommitCoordinatorClient]
getTableCommitCoordinator...FIXME
getTableCommitCoordinator is used when:
Snapshotis requested for a TableCommitCoordinatorClient
getCoordinatedCommitsConfs¶
getCoordinatedCommitsConfs...FIXME
getCoordinatedCommitsConfs is used when:
OptimisticTransactionImplis requested to registerTableForCoordinatedCommitsIfNeeded
unbackfilledCommitsPresent¶
unbackfilledCommitsPresent is enabled (true) when there are unbackfilled delta files (files in _staged_commits directory).
unbackfilledCommitsPresent is used when:
CoordinatedCommitsPreDowngradeCommandis requested to removeFeatureTracesIfNeededCatalogOwnedTableFeatureis requested to validateDropInvariantsCoordinatedCommitsTableFeatureis requested to validateDropInvariants
validateConfigurationsForCreateDeltaTableCommand¶
validateConfigurationsForCreateDeltaTableCommand(
spark: SparkSession,
tableExists: Boolean,
query: Option[LogicalPlan],
catalogTableProperties: Map[String, String]): Unit
validateConfigurationsForCreateDeltaTableCommand validateConfigurationsForCreateDeltaTableCommandImpl.
validateConfigurationsForCreateDeltaTableCommand is used when:
CreateDeltaTableCommandis requested to run
validateConfigurationsForCreateDeltaTableCommandImpl¶
validateConfigurationsForCreateDeltaTableCommandImpl(
spark: SparkSession,
propertyOverrides: Map[String, String],
tableExists: Boolean,
command: String): Unit
validateConfigurationsForCreateDeltaTableCommandImpl...FIXME
verifyContainsOnlyCoordinatorNameAndConf¶
verifyContainsOnlyCoordinatorNameAndConf(
properties: Map[String, String],
command: String,
fromDefault: Boolean): Unit
verifyContainsOnlyCoordinatorNameAndConf...FIXME
verifyContainsOnlyCoordinatorNameAndConf is used when:
CoordinatedCommitsUtilsis requested to validateConfigurationsForAlterTableSetPropertiesDeltaCommand and validateConfigurationsForCreateDeltaTableCommandImpl
getExplicitCCConfigurations¶
getExplicitCCConfigurations extracts the Coordinated Commits-related entries from the given properties map.
getExplicitCCConfigurations is used when:
OptimisticTransactionImplis requested to updateMetadataForNewTableInReplaceCloneTableBaseis requested to determineCoordinatedCommitsConfigurations and determineTargetMetadataCreateDeltaTableCommandis requested to filterCoordinatedCommitsPropertiesCoordinatedCommitsUtilsis requested to validateConfigurationsForAlterTableSetPropertiesDeltaCommand, validateConfigurationsForAlterTableUnsetPropertiesDeltaCommand and validateConfigurationsForCreateDeltaTableCommandImpl
TABLE_PROPERTY_CONFS¶
TABLE_PROPERTY_CONFS is a collection of the following DeltaConfigs:
- delta.coordinatedCommits.commitCoordinator-preview
- delta.coordinatedCommits.commitCoordinatorConf-preview
- delta.coordinatedCommits.tableConf-preview
TABLE_PROPERTY_CONFS is used when:
CoordinatedCommitsUtilsis requested to getDefaultCCConfigurations and TABLE_PROPERTY_KEYS
TABLE_PROPERTY_KEYS¶
TABLE_PROPERTY_KEYS is a collection of the keys of the delta table properties:
- delta.coordinatedCommits.commitCoordinator-preview
- delta.coordinatedCommits.commitCoordinatorConf-preview
- delta.coordinatedCommits.tableConf-preview
TABLE_PROPERTY_KEYS is used when:
DeltaAnalysisis requested to applyOptimisticTransactionImplis requested to updateMetadataForNewTableInReplaceCoordinatedCommitsPreDowngradeCommandis requested to removeFeatureTracesIfNeededCloneTableBaseis requested to prepareSourceMetadataCreateDeltaTableCommandis requested to filterCoordinatedCommitsPropertiesCoordinatedCommitsUtilsis requested to getExplicitCCConfigurations, tablePropertiesPresent and validateConfigurationsForAlterTableUnsetPropertiesDeltaCommand
tablePropertiesPresent¶
tablePropertiesPresent checks if any of the TABLE_PROPERTY_KEYS is among the table properties in the configuration of the given Metadata.
tablePropertiesPresent is used when:
CoordinatedCommitsPreDowngradeCommandis requested to removeFeatureTracesIfNeededCoordinatedCommitsTableFeatureis requested to validateDropInvariants