-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
profile_where_clause
tests and profile_over_time
in BigQuery …
…+ Snowflake (#58) * Fix typos in profile_where_clause.yml * Fix profile_where_clause tests * Fix where_clause position in get_profile macro * Fix profile_over_time in bigquery * Fix profile_over_time in snowflake * Add Databricks to PR template Co-authored-by: Simo Tumelius <[email protected]>
- Loading branch information
1 parent
83bb2a5
commit 48497d9
Showing
5 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
-- depends_on: {{ ref("test_data") }} | ||
{% if execute %} | ||
{%- set where_clause = "string_not_nullable = 'one'" -%} | ||
{%- if target.type == "snowflake" -%} | ||
{%- set where_clause = where_clause -%} | ||
{%- endif -%} | ||
{{ dbt_profiler.get_profile(relation=ref("test_data"), where_clause=where_clause) }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: profile_exclude_columns | ||
- name: profile_where_clause | ||
columns: | ||
- name: string_not_nullable | ||
- name: row_count | ||
tests: | ||
- dbt_expectations.expect_column_values_to_match_like_pattern: | ||
like_patter: ["one"] | ||
- dbt_utils.expression_is_true: | ||
expression: "= 2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters