Skip to content

Commit

Permalink
Merge pull request #3 from Divergent-Insights/ftests
Browse files Browse the repository at this point in the history
Enhancing readme and fixing broken loading macros
  • Loading branch information
wilson-urdaneta authored Apr 22, 2022
2 parents 268f39c + 2f90343 commit e8a4916
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,11 @@ dbt source freshness
dbt run-operation load_log_sources
dbt run --select dbt_dataquality.sources
# Optionally, since this an incremental model you can use the --full-refresh option to rebuild the model
dbt run --full-refresh --select dbt_dataquality.sources
dbt test
dbt run-operation load_log_tests
dbt run --select dbt_dataquality.tests
# Optionally, the dbt_dataquality package uses incremental models so don't forget to use the option `--full-refresh` to rebuild the models
# Optionally, the dbt_dataquality package uses incremental models so don't forget to use the option `--full-refresh` to rebuild them
# For example
dbt run --full-refresh --select dbt_dataquality.sources
dbt run --full-refresh --select dbt_dataquality.tests
Expand Down
2 changes: 1 addition & 1 deletion macros/load_log_manifest.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% set log_file = config["dbt_target_path"] ~ '/manifest.json' %}

{% if load_from_internal_stage %}
{{ load_from_internal_stage(file=log_file) }}
{{ load_internal_stage(file=log_file) }}
{% endif %}

{{ load_src_table() }}
Expand Down
2 changes: 1 addition & 1 deletion macros/load_log_sources.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro load_log_sources(load_from_internal_stage=True) %}

{{ load_log_manifest() }}
{{ load_log_manifest(load_from_internal_stage) }}

{% set config = _get_config() %}
{% set log_file = config["dbt_target_path"] ~ '/sources.json' %}
Expand Down
2 changes: 2 additions & 0 deletions macros/load_log_tests.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% macro load_log_tests(load_from_internal_stage=True) %}

{{ load_log_manifest(load_from_internal_stage) }}

{% set config = _get_config() %}
{% set log_file = config["dbt_target_path"] ~ '/run_results.json' %}

Expand Down

0 comments on commit e8a4916

Please sign in to comment.