[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR --> (using the same existing tests for 'insert_overwrite')
[X] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
resolves #1409 docs
"N/A"
Problem
The
MERGE
statement is sub-optimized in BigQuery when it comes to only replace partitions in the'insert_overwrite'
strategy forincremental
modelsSolution
For the
insert_overwrite
strategy where we are looking to replace rows at the partition-level, there is a better solution and here is why:DELETE
orINSERT
statement is cheapest than aMERGE
statement.DELETE
statement in BigQuery is free at the partition-level.Checklist
'insert_overwrite'
)