Skip to main content
Replaces all existing data with new data on each run. This is the simplest approach and ensures your target table always reflects the latest state of your source data.

Example: Replace vehicle registry

A full vehicle registry is refreshed each day, replacing all prior records with the latest list.
Incoming table
VEHICLE_IDTYPEREGISTERED_AT
201Bus2024-01-15
202Train2024-01-16
Existing table
VEHICLE_IDTYPEREGISTERED_AT
101Bus2023-12-01
102Tram2023-12-02
Updated table
VEHICLE_IDTYPEREGISTERED_AT
201Bus2024-01-15
202Train2024-01-16
Notice that all previous records (vehicles 101 and 102) have been completely removed and replaced with the new incoming data.

Partition the target table (BigQuery only)

The following partitioning parameters are available for the Wipe and Replace Table write mode on BigQuery.
ParameterDescription
Column NameThe name of the column used for partitioning the target table.
Data TypeThe data type of the partition column.
Supported types: timestamp, date, datetime, and int64.
Partition By granularityApplicable only to timestamp, date, or datetime data type.
Defines the time-based partition granularity: hour, day, month, or year.
Partition RangeApplicable only to int64 data type.
Specify a numeric range for partitioning using a start, end, and interval value (e.g., start=0, end=1000, interval=10).
You must define an interval value so that Prophecy knows at what intervals to create the partitions.
Only BigQuery tables can be partitioned at the table level. To learn more about partitioning, jump to Partitioning.