Skip to content

Commit

Permalink
Show group_by columns in validation errors for column increasing test (
Browse files Browse the repository at this point in the history
…#158)

* Show group_by columns in validation errors for column increasing test

* Add github actions workflow (#159)

* Add github workflow

* Remove pre-commit

* Show group_by columns in validation errors for column increasing test

* Add .circleci/config.yml (#161)

* Add .circleci/config.yml

* Remove github action

* Update postgres test

* Add dbt install

* Add env variables

* Install dbt dependencies

* Empty postgres password

* Upgrade postgres image

* Update connection settings

* Fix postgres profile

* Move profiles

* Add BigQuery run

* Fix job name

* Update key path

* Update config

* Update schema

* Add Snowflake tests

* Update profile

* Add back postgres

* Show group_by columns in validation errors for column increasing test

* Jinja whitespace update (to force CI)

Co-authored-by: Claus Herther <claus@calogica.com>
  • Loading branch information
dluftspring and clausherther committed Apr 4, 2022
1 parent aa7d80c commit 36e0f65
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
group_by=None) %}

{%- set sort_column = column_name if not sort_column else sort_column -%}
{%- set operator = ">" if strictly else ">=" %}
{%- set operator = ">" if strictly else ">=" -%}
with all_values as (

select
Expand All @@ -24,6 +24,9 @@ add_lag_values as (

select
sort_column,
{%- if group_by -%}
{{ group_by | join(", ") }},
{%- endif %}
value_field,
lag(value_field) over
{%- if not group_by -%}
Expand Down

0 comments on commit 36e0f65

Please sign in to comment.