Spaces:
Running
Running
Jon Solow
commited on
Commit
·
dfae8a4
1
Parent(s):
4ecef0c
Remove examples
Browse files
src/dbt_yfdash/dbt_project.yml
CHANGED
|
@@ -32,8 +32,6 @@ clean-targets: # directories to be removed by `dbt clean`
|
|
| 32 |
models:
|
| 33 |
dbt_yfdash:
|
| 34 |
# Config indicated by + and applies to all files under models/example/
|
| 35 |
-
example:
|
| 36 |
-
+materialized: view
|
| 37 |
nflverse:
|
| 38 |
+materialized: view
|
| 39 |
|
|
|
|
| 32 |
models:
|
| 33 |
dbt_yfdash:
|
| 34 |
# Config indicated by + and applies to all files under models/example/
|
|
|
|
|
|
|
| 35 |
nflverse:
|
| 36 |
+materialized: view
|
| 37 |
|
src/dbt_yfdash/models/example/my_first_dbt_model.sql
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
/*
|
| 3 |
-
Welcome to your first dbt model!
|
| 4 |
-
Did you know that you can also configure models directly within SQL files?
|
| 5 |
-
This will override configurations stated in dbt_project.yml
|
| 6 |
-
|
| 7 |
-
Try changing "table" to "view" below
|
| 8 |
-
*/
|
| 9 |
-
|
| 10 |
-
{{ config(materialized='table') }}
|
| 11 |
-
|
| 12 |
-
with source_data as (
|
| 13 |
-
|
| 14 |
-
select 1 as id
|
| 15 |
-
union all
|
| 16 |
-
select null as id
|
| 17 |
-
|
| 18 |
-
)
|
| 19 |
-
|
| 20 |
-
select *
|
| 21 |
-
from source_data
|
| 22 |
-
|
| 23 |
-
/*
|
| 24 |
-
Uncomment the line below to remove records with null `id` values
|
| 25 |
-
*/
|
| 26 |
-
|
| 27 |
-
where id is not null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/dbt_yfdash/models/example/my_second_dbt_model.sql
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
-- Use the `ref` function to select from other models
|
| 3 |
-
|
| 4 |
-
select *
|
| 5 |
-
from {{ ref('my_first_dbt_model') }}
|
| 6 |
-
where id = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/dbt_yfdash/models/example/schema.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
version: 2
|
| 3 |
-
|
| 4 |
-
models:
|
| 5 |
-
- name: my_first_dbt_model
|
| 6 |
-
description: "A starter dbt model"
|
| 7 |
-
columns:
|
| 8 |
-
- name: id
|
| 9 |
-
description: "The primary key for this table"
|
| 10 |
-
data_tests:
|
| 11 |
-
- unique
|
| 12 |
-
- not_null
|
| 13 |
-
|
| 14 |
-
- name: my_second_dbt_model
|
| 15 |
-
description: "A starter dbt model"
|
| 16 |
-
columns:
|
| 17 |
-
- name: id
|
| 18 |
-
description: "The primary key for this table"
|
| 19 |
-
data_tests:
|
| 20 |
-
- unique
|
| 21 |
-
- not_null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|