PostCommitHook¶
PostCommitHook
is an abstraction of post-commit hooks to be executed right after a successful transaction commit).
Contract¶
Name¶
name: String
User-friendly name of the hook (for error reporting)
See:
Used when:
DeltaErrorsBase
is requested to postCommitHookFailedExceptionOptimisticTransactionImpl
is requested to runPostCommitHook (that failed)
Executing Post-Commit Hook¶
run(
spark: SparkSession,
txn: OptimisticTransactionImpl,
committedVersion: Long,
postCommitSnapshot: Snapshot,
committedActions: Seq[Action]): Unit
See:
Used when:
OptimisticTransactionImpl
is requested to runPostCommitHook (at transaction commit).