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
) -
DeletionVectorDescriptor
- Base Row ID
- Default Row Commit Version
RemoveFile
is created when:
AddFile
action is requested to removeWithTimestamp
dataChange¶
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:
AddFile
is requested to removeWithTimestamp