Skip to content

Commit

Permalink
Merge pull request #734 from elementary-data/use-test-schema-on-schem…
Browse files Browse the repository at this point in the history
…a-changes-from-baseline

Use 'tests_schema_name' var on 'schema_changes_from_baseline' test.
  • Loading branch information
elongl authored Jul 8, 2024
2 parents 8b21e86 + 5d7f461 commit 8572db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/edr/tests/test_schema_changes_from_baseline.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{# Get baseline and store it in a table #}
{% set baseline_columns = elementary.get_model_baseline_columns(model_relation, enforce_types=enforce_types) %}
{% set baseline_table_relation = elementary.create_model_baseline_table(baseline_columns, database_name, schema_name, test_table_name) %}
{% set baseline_table_relation = elementary.create_model_baseline_table(baseline_columns, database_name, tests_schema_name, test_table_name) %}

{% set full_table_name = elementary.relation_to_full_name(model_relation) %}
{% set changes_from_baseline_query = elementary.get_column_changes_from_baseline_query(model_relation, full_table_name, baseline_table_relation, include_added=fail_on_added) %}
Expand Down

0 comments on commit 8572db5

Please sign in to comment.