Skip to main content
Replaces entire partitions in the target table. Only partitions containing updated data will be overwritten; other partitions will not be modified.

Parameters

Example: Replace one day’s sales

A sales table is partitioned by the SALE_DATE column. A corrected dataset arrives for 2024-01-15, so only that partition is replaced. All other partitions remain unchanged.
Existing target tableIncoming datasetResulting target tableBecause this write mode replaces entire partitions, Prophecy removes all existing rows from any partition represented in the incoming dataset before writing the new rows. Partitions that are not represented in the incoming dataset are left unchanged. In this example, only the 2024-01-15 partition is replaced, while the 2024-01-14 partition remains unchanged.

Define partition granularity (BigQuery only)

The following partitioning parameters allow you to define the partition granularity for this operation.