Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: apply sqlfmt d620ac8 #17

Merged
merged 2 commits into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion macros/cross_db_utils/current_timestamp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ current_timestamp::{{ dbt_utils.type_timestamp() }}
{% macro bigquery__current_timestamp() %} current_timestamp {% endmacro %}



{% macro current_timestamp_in_utc() -%}
{{ return(adapter.dispatch("current_timestamp_in_utc", "dbt_utils")()) }}
{%- endmacro %}
Expand Down
1 change: 0 additions & 1 deletion macros/cross_db_utils/datatypes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
{% macro snowflake__type_string() %} varchar {% endmacro %}



{# timestamp ------------------------------------------------- #}
{%- macro type_timestamp() -%}
{{ return(adapter.dispatch("type_timestamp", "dbt_utils")()) }}
Expand Down
1 change: 0 additions & 1 deletion macros/cross_db_utils/replace.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@

replace({{ field }}, {{ old_chars }}, {{ new_chars }})


{% endmacro %}
2 changes: 0 additions & 2 deletions macros/generic_tests/not_constant.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

{% macro default__test_not_constant(model, column_name) %}


{# In TSQL, subquery aggregate columns need aliases #}
{# thus: a filler col name, 'filler_column' #}
select count(distinct {{ column_name }}) as filler_column
Expand All @@ -14,5 +13,4 @@ from {{ model }}

having count(distinct {{ column_name }}) = 1


{% endmacro %}
2 changes: 0 additions & 2 deletions macros/generic_tests/unique_combination_of_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

{%- set columns_csv = column_list | join(", ") %}


with
validation_errors as (

Expand All @@ -46,5 +45,4 @@ with
select *
from validation_errors


{% endmacro %}
3 changes: 0 additions & 3 deletions macros/sql/date_spine.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ select {{ dbt_utils.datediff(start_date, end_date, datepart) }}
{%- endmacro %}




{% macro date_spine(datepart, start_date, end_date) %}
{{
return(
Expand All @@ -37,7 +35,6 @@ select {{ dbt_utils.datediff(start_date, end_date, datepart) }}

{% macro default__date_spine(datepart, start_date, end_date) %}


{# call as follows:

date_spine(
Expand Down
1 change: 0 additions & 1 deletion macros/sql/get_column_values.sql
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

{%- else -%}


select {{ column }} as value

from {{ target_relation }}
Expand Down
1 change: 0 additions & 1 deletion macros/sql/get_tables_by_pattern_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,4 @@ where

{% endif %}


{% endmacro %}
1 change: 0 additions & 1 deletion macros/sql/haversine_distance.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ The arguments should be float type.
{%- endmacro %}



{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit="mi") -%}
{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}
{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}
Expand Down
1 change: 0 additions & 1 deletion macros/sql/surrogate_key.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

{%- endif -%}


{%- set fields = [] -%}

{%- for field in field_list_xf -%}
Expand Down
1 change: 0 additions & 1 deletion macros/sql/unpivot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Arguments:
{%- endif %}
{%- endfor %}


{%- for col in include_cols -%}
select
{%- for exclude_col in exclude %} {{ exclude_col }}, {%- endfor %}
Expand Down