Skip to content

Commit

Permalink
Fix get_tags_by_original_file_paths (#55)
Browse files Browse the repository at this point in the history
* Fix `get_tags_by_original_file_paths`

Signed-off-by: Yu ISHIKAWA <[email protected]>

* Add dependency on pytz

Signed-off-by: Yu ISHIKAWA <[email protected]>

---------

Signed-off-by: Yu ISHIKAWA <[email protected]>
  • Loading branch information
yu-iskw authored Apr 27, 2023
1 parent 596f0ae commit 0321f5c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions integration_tests/requirements/requirements-1.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ dbt-core==1.1.0
# > for soft_unicode since it was deprecated and says we should be using soft_str
# > instead (https://markupsafe.palletsprojects.com/en/2.1.x/changes/).
MarkupSafe==2.0.1

pytz>=2015.7
2 changes: 2 additions & 0 deletions integration_tests/requirements/requirements-1.2.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dbt-bigquery==1.2.0
dbt-core==1.2.1

pytz>=2015.7
2 changes: 2 additions & 0 deletions integration_tests/requirements/requirements-1.3.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dbt-bigquery==1.3.0
dbt-core==1.3.1

pytz>=2015.7
2 changes: 2 additions & 0 deletions integration_tests/requirements/requirements-1.4.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
dbt-bigquery==1.4.0
dbt-core==1.4.0

pytz>=2015.7
3 changes: 2 additions & 1 deletion macros/public/get_tags_by_original_file_paths.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

{# Generate dbt models and sources #}
{% set models_and_sources = [] %}
{% do models_and_sources.extend(dbt_data_privacy.get_nodes("model")) %}
{% do models_and_sources.extend(dbt_data_privacy.get_nodes("source")) %}
{% do models_and_sources.extend(dbt_data_privacy.get_nodes("model")) %}
{% do models_and_sources.extend(dbt_data_privacy.get_nodes("snapshot")) %}

{# Filter by original_file_paths #}
{% set selected_nodes = [] %}
Expand Down

0 comments on commit 0321f5c

Please sign in to comment.