forked from sqlfluff/sqlfluff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbt Templater Plugin: dbt 1.8 support (sqlfluff#5892)
Co-authored-by: Kazuhito Osabe <[email protected]>
- Loading branch information
Showing
15 changed files
with
341 additions
and
142 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dbt-core~=1.8.0 | ||
dbt-postgres~=1.8.0 |
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
1 change: 1 addition & 0 deletions
1
plugins/sqlfluff-templater-dbt/test/fixtures/dbt/dbt_project/models/vars_from_env.sql
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
SELECT {{ env_var('passed_through_env') }} |
34 changes: 0 additions & 34 deletions
34
plugins/sqlfluff-templater-dbt/test/fixtures/dbt/templater.py
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
plugins/sqlfluff-templater-dbt/test/fixtures/dbt180/dbt_project.yml
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'my_new_project' | ||
version: '1.0.0' | ||
config-version: 2 | ||
|
||
profile: 'default' | ||
|
||
test-paths: ["tests"] | ||
|
||
models: | ||
my_new_project: | ||
materialized: view | ||
|
||
vars: | ||
my_new_project: | ||
# Default date stamp of run | ||
ds: "2020-01-01" | ||
# passed_through_cli: testing for vars passed through cli('--vars' option) rather than dbt_project | ||
|
||
flags: | ||
send_anonymous_usage_stats: false |
12 changes: 12 additions & 0 deletions
12
plugins/sqlfluff-templater-dbt/test/fixtures/dbt180/profiles_yml/profiles.yml
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
default: | ||
target: dev | ||
outputs: | ||
dev: | ||
type: postgres | ||
host: "{{ env_var('POSTGRES_HOST', 'localhost') }}" | ||
user: postgres | ||
pass: password | ||
port: 5432 | ||
dbname: postgres | ||
schema: dbt_alice | ||
threads: 4 |
12 changes: 12 additions & 0 deletions
12
plugins/sqlfluff-templater-dbt/test/fixtures/dbt180/profiles_yml_fail/profiles.yml
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
default: | ||
target: dev | ||
outputs: | ||
dev: | ||
type: postgres | ||
host: localhost | ||
user: postgres | ||
pass: password | ||
port: 2345 | ||
dbname: postgres | ||
schema: dbt_alice | ||
threads: 4 |
Oops, something went wrong.