-
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.
Merge pull request #2 from Agilefreaks/add_models
[Add Models] Add YML for stg_dosare
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
with source as ( | ||
select * | ||
from {{source('dosare_raw', 'dosare')}} | ||
) | ||
|
||
select * | ||
from source |
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,19 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: stg_dosare | ||
description: Informații despre dosarele din baza de date a instanțelor judecătorești | ||
columns: | ||
- name: obiect | ||
description: Obiectul judecății, acuzațiile | ||
tests: | ||
- not_null | ||
- name: datainitiala | ||
description: Data de înregistrare a dosarului | ||
- name: data | ||
description: Data ultimei modificări | ||
- name: parti | ||
description: Numele părții din dosar | ||
- name: numar | ||
description: Numărul dosarului | ||
|
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,19 @@ | ||
version: 2 | ||
|
||
sources: | ||
- name: dosare_raw | ||
schema: public | ||
tags: ["dosare_raw"] | ||
tables: | ||
- name: dosare | ||
- name: dosare_caiatac | ||
- name: dosare_februarie_2024 | ||
- name: dosare_februarie_2024_caiatac | ||
- name: dosare_februarie_2024_parti | ||
- name: dosare_ianuarie_2024 | ||
- name: dosare_ianuarie_2024_caiatac | ||
- name: dosare_ianuarie_2024_parti | ||
- name: dosare_martie_2024 | ||
- name: dosare_martie_2024_caiatac | ||
- name: dosare_martie_2024_parti | ||
- name: dosare_parti |