Skip to content

Commit

Permalink
update readme and fix some whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmmcneill committed Jul 23, 2022
1 parent c84064d commit 92b4e3e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,16 @@ quit -- to end the server connection

All CI models are required to run and pass tests for a merge to be allowed.

### Running sqlfluff

This package is linted by sqlfluff. To run this linter, simply run:

```
sqlfluff lint -v
```

from the integration_tests folder. sqlfluff does not currently support macros, meaning that only models in the integration_tests folder are linted.

----
## Contents

Expand Down
6 changes: 3 additions & 3 deletions integration_tests/macros/cte_difference.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
(
select '{{cte_1}}' as _data_location, {{ fields|join(',') }} from {{ cte_1 }}
except
select '{{cte_1}}' as _data_location,{{ fields|join(',') }} from {{ cte_2 }}
select '{{cte_1}}' as _data_location, {{ fields|join(',') }} from {{ cte_2 }}
union
select '{{cte_2}}' as _data_location,{{ fields|join(',') }} from {{ cte_2 }}
select '{{cte_2}}' as _data_location, {{ fields|join(',') }} from {{ cte_2 }}
except
select '{{cte_2}}' as _data_location,{{ fields|join(',') }} from {{ cte_1 }}
select '{{cte_2}}' as _data_location, {{ fields|join(',') }} from {{ cte_1 }}
) as diff
{% endmacro %}

0 comments on commit 92b4e3e

Please sign in to comment.