Complete the code to specify the unique key for merge behavior in a dbt model.
unique_key = "[1]"
The unique key is typically the primary identifier like id used to match records during merge.
Complete the code to define the merge strategy using the unique key in dbt.
merge_update = model.merge(on=[1])The merge function uses the unique key id to match records for update.
Fix the error in the merge configuration by correctly specifying the unique key.
merge_config = {
'unique_key': [1]
}The unique_key must be set to the unique identifier 'id' as a string.
Fill both blanks to create a merge statement that uses the unique key and updates records.
merge_statement = model.merge(on=[1]).update([2])
on parameter or wrong dictionary keys for update.The merge uses ['id'] as the unique key and updates the status field to 'active'.
Fill all three blanks to define a merge with unique key, update columns, and insert columns.
merge_result = model.merge(on=[1]).update([2]).insert([3])
The merge uses ['id'] as the unique key, updates status, and inserts new records with id, status, and created_at.