Define the CRUD Operation
The Google BigQuery (Enterprise) destination can insert, update, upsert, or delete data when you configure the destination to process CDC data. When processing CDC data, the destination merges data into BigQuery tables.
sdc.operation.type
record header attribute. The destination
performs operations based on the following numeric values:- 1 for INSERT
- 2 for DELETE
- 3 for UPDATE
- 4 for UPSERT
If your
pipeline includes a CRUD-enabled origin that processes changed
data, the destination simply reads the operation type from the
sdc.operation.type
header attribute that
the origin generates. If your pipeline uses a non-CDC origin,
you can use the Expression Evaluator or a scripting processor to
define the record header attribute. For more information about
Data Collector
changed data processing and a list of CDC-enabled origins, see
Processing Changed Data.