Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Add Models] Add stg_dosare_parti model #3

Merged
merged 2 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dbt/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ clean-targets: # directories to be removed by `dbt clean`
models:
opendataexplorer:
# Config indicated by + and applies to all files under models/example/
example:
+materialized: view
dosare:
+materialized: table
3 changes: 3 additions & 0 deletions dbt/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packages:
- package: dbt-labs/snowplow
version: 0.7.0
7 changes: 7 additions & 0 deletions dbt/models/dosare/models/stg_dosare_parti.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
with source as (
select *
from {{source('dosare_raw', 'dosare_parti')}}
)

select *
from source
15 changes: 15 additions & 0 deletions dbt/models/dosare/schema/stg_dosare_parti.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2

models:
- name: stg_dosare_parti
description: Lista de părți din dosar, Numele părții din dosar
columns:
- name: data
description: Data de înregistrare a dosarului
tests:
- not_null
- name: nume
description: Numele părții din dosar
tests:
- not_null

27 changes: 0 additions & 27 deletions dbt/models/example/my_first_dbt_model.sql

This file was deleted.

6 changes: 0 additions & 6 deletions dbt/models/example/my_second_dbt_model.sql

This file was deleted.

21 changes: 0 additions & 21 deletions dbt/models/example/schema.yml

This file was deleted.

Loading