public interface ReplacePartitions extends SnapshotUpdate<ReplacePartitions>
This is provided to implement SQL compatible with Hive table operations but is not recommended.
Instead, use the overwrite API
to explicitly overwrite data.
This API accumulates file additions and produces a new Snapshot
of the table by replacing
all files in partitions with new data with the new additions. This operation is used to implement
dynamic partition replacement.
When committing, these changes will be applied to the latest table snapshot. Commit conflicts will be resolved by applying the changes to the new latest snapshot and reattempting the commit. This has no requirements for the latest snapshot and will not fail based on other snapshot changes.
Modifier and Type | Method and Description |
---|---|
ReplacePartitions |
addFile(DataFile file)
Add a
DataFile to the table. |
ReplacePartitions |
validateAppendOnly()
Validate that no partitions will be replaced and the operation is append-only.
|
deleteWith, set, stageOnly
apply, commit, updateEvent
ReplacePartitions addFile(DataFile file)
DataFile
to the table.file
- a data fileReplacePartitions validateAppendOnly()