More thingies

This commit is contained in:
Pablo Martin 2023-10-30 16:28:30 +01:00
parent 718366d09c
commit ba37fc09e7
6 changed files with 5 additions and 55 deletions

View file

@ -27,6 +27,8 @@ Once you have set this up and the database as well, you can run `dbt debug` to e
You should also delete the lines under the `dbtlearn` key in the `dbt_project.yml` file.
Also delete the contents of the `models` folder.
# DBT noisy things below

View file

@ -1,27 +0,0 @@
/*
Welcome to your first dbt model!
Did you know that you can also configure models directly within SQL files?
This will override configurations stated in dbt_project.yml
Try changing "table" to "view" below
*/
{{ config(materialized='table') }}
with source_data as (
select 1 as id
union all
select null as id
)
select *
from source_data
/*
Uncomment the line below to remove records with null `id` values
*/
-- where id is not null

View file

@ -1,6 +0,0 @@
-- Use the `ref` function to select from other models
select *
from {{ ref('my_first_dbt_model') }}
where id = 1

View file

@ -1,21 +0,0 @@
version: 2
models:
- name: my_first_dbt_model
description: "A starter dbt model"
columns:
- name: id
description: "The primary key for this table"
tests:
- unique
- not_null
- name: my_second_dbt_model
description: "A starter dbt model"
columns:
- name: id
description: "The primary key for this table"
tests:
- unique
- not_null