Skip to content

AddCDCFile

AddCDCFile is a FileAction for the change file with Change Data Feed data of the version of a delta table.

AddCDCFile is created when DelayedCommitProtocol is requested to commit a task.

CDF-aware readers are supposed to scan AddCDCFiles for the changes of a delta table.

Creating Instance

AddCDCFile takes the following to be created:

  • Path
  • Partition values (Map[String, String])
  • Size (in bytes)
  • Tags (default: null)

AddCDCFile is created when:

dataChange

FileAction
dataChange: Boolean

dataChange is part of the FileAction abstraction.

dataChange is always false.

Converting to SingleAction

FileAction
wrap: Boolean

wrap is part of the FileAction abstraction.

wrap creates a new SingleAction with cdc property set to this AddCDCFile.