Using Merge Query for Update, Upsert, and Delete Operations
Using Merge Query for Update, Upsert, and Delete Operations
You can implement the Merge query to perform the update, upsert, and delete operations on a Google BigQuery target in a single SQL statement.
To implement the Merge query, select the
Enable Merge
option in the target session properties.
Rules and Guidelines
Consider the following rules and guidelines when you use the Merge query:
When you configure a Google BigQuery connection to use the simple connection mode and select CSV as the staging file format, you must not mark any columns of the Record data type for update or upsert operation.
When you configure a Google BigQuery connection to use the simple connection mode, the Google BigQuery target table must not contain repeated columns.
When you configure a Google BigQuery connection to use hybrid connection mode, the Google BigQuery target table must not contain repeated columns as the key field.