Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix refresh_strategy = auto semantics for dynamic tables #1268

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

VersusFacit
Copy link
Contributor

@VersusFacit VersusFacit commented Dec 9, 2024

resolves #1267
docs dbt-labs/docs.getdbt.com/#

Problem

We were treating AUTO as a metadata value but it's actually a runtime directive value. auto dispatches into incremental or full, so we need to compare accordingly.

Solution

Fix the boolean to never rebuild for an auto model

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

@VersusFacit VersusFacit requested a review from a team as a code owner December 9, 2024 20:07
@cla-bot cla-bot bot added the cla:yes label Dec 9, 2024
Copy link
Contributor

github-actions bot commented Dec 9, 2024

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the dbt-snowflake contributing guide.

@colin-rogers-dbt colin-rogers-dbt enabled auto-merge (squash) December 9, 2024 21:27
@colin-rogers-dbt colin-rogers-dbt merged commit b3eeb08 into main Dec 9, 2024
14 checks passed
@colin-rogers-dbt colin-rogers-dbt deleted the fix_dynamic_table_auto_bug branch December 9, 2024 21:44
github-actions bot pushed a commit that referenced this pull request Dec 9, 2024
* Add failing test.

* Parametrize cases

* Change comparison logic for when to rebuild if DT has auto refresh strategy (implicit or explicit).

* Add changelog

---------

Co-authored-by: VersusFacit <[email protected]>
(cherry picked from commit b3eeb08)
colin-rogers-dbt added a commit that referenced this pull request Dec 9, 2024
* Add failing test.

* Parametrize cases

* Change comparison logic for when to rebuild if DT has auto refresh strategy (implicit or explicit).

* Add changelog

---------

Co-authored-by: VersusFacit <[email protected]>
(cherry picked from commit b3eeb08)

Co-authored-by: Mila Page <[email protected]>
Co-authored-by: Colin Rogers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Regression] Existing Dynamic Tables Are Being Recreated Even Without Full Refresh
2 participants