Skip to content

RemoveFile

RemoveFile is a FileAction that represents an action of removing (deleting) a file from a delta table.

Creating Instance

RemoveFile takes the following to be created:

  • Path
  • Deletion Timestamp (optional)
  • dataChange flag
  • extendedFileMetadata flag (default: false)
  • Partition values (default: null)
  • Size (in bytes) (default: 0)
  • Tags (Map[String, String]) (default: null)
  • DeletionVectorDescriptor
  • Base Row ID
  • Default Row Commit Version

RemoveFile is created when:

dataChange

FileAction
dataChange: Boolean

dataChange is part of the FileAction abstraction.

dataChange and OPTIMIZE command

dataChange flag is only false (disabled) for OPTIMIZE command.

RemoveFile is given dataChange flag when created.

dataChange is enabled (true) by default.

dataChange can be specified when: