Skip to content

Conversation

@Thrasi
Copy link

@Thrasi Thrasi commented Oct 12, 2025

Adds support for enable_fine_grained_mutations
resolves #1386

Problem

BigQuery released a feature enabling fine grained DML mutations which can speed up merge, update and delete queries
This would enable dbt to activate that option for tables.
Today you have to do so manually in SQL.

Solution

Heavily inspired by the previous addition of the enable_change_history config introduced in the same blog by BigQuery
A new attribute in the BigqueryConfig class.
Logic in the adapter to apply the table option.
Integration tests to verify the feature works on table and incremental models.
A check to prevent usage on views.

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • 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

@Thrasi Thrasi requested a review from a team as a code owner October 12, 2025 16:15
@cla-bot cla-bot bot added the cla:yes The PR author has signed the CLA label Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla:yes The PR author has signed the CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add enable_fine_grained_mutations support BigQuery

1 participant