Skip to content

Commit

Permalink
dbt will default a ref of a versioned model to the latest version, so…
Browse files Browse the repository at this point in the history
… macro no longer needed
  • Loading branch information
Noel Gomez committed Dec 11, 2024
1 parent d1c7982 commit 9c5bcfa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
1 change: 0 additions & 1 deletion transform/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ models:
columns: true

post-hook:
- "{{ create_latest_version_view() }}"
- "{{ dbt_snow_mask.apply_masking_policy('sources') if target.name == 'prd_pii' }}"
- "{{ dbt_snow_mask.apply_masking_policy('models') if target.name == 'prd_pii' }}"

Expand Down
32 changes: 0 additions & 32 deletions transform/macros/tooling/create_latest_version_view.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
models:
- name: country_populations
access: public
latest_version: 3
latest_version: 2
columns:
- name: year
description: The year for which the population value is recorded
Expand Down

0 comments on commit 9c5bcfa

Please sign in to comment.