Skip to content

Commit

Permalink
fix(dbt)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Aug 29, 2023
1 parent a333adc commit 3056811
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pipeline/dbt/models/marts/api/api_structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ final AS (
relation_alias='structures',
from=ref('int__union_structures__enhanced'),
except=[
'_di_sirene_date_fermeture',
'_di_sirene_etab_successeur',
'_di_adresse_surrogate_id',
'_di_annotated_antenne',
'_di_annotated_siret',
Expand Down
4 changes: 2 additions & 2 deletions pipeline/dbt/models/marts/opendata/opendata_services.sql
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
WITH services AS (
SELECT * FROM {{ ref('int__union_services') }}
SELECT * FROM {{ ref('int__union_services__enhanced') }}
),

final AS (
SELECT
{{
dbt_utils.star(
relation_alias='services',
from=ref('int__union_services'),
from=ref('int__union_services__enhanced'),
except=['courriel', 'telephone'])
}},
{{ obfuscate('courriel') }} AS "courriel",
Expand Down
4 changes: 2 additions & 2 deletions pipeline/dbt/models/marts/opendata/opendata_structures.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
WITH structures AS (
SELECT * FROM {{ ref('int__union_structures') }}
SELECT * FROM {{ ref('int__union_structures__enhanced') }}
),

final AS (
Expand All @@ -8,7 +8,7 @@ final AS (
{{
dbt_utils.star(
relation_alias='structures',
from=ref('int__union_structures'),
from=ref('int__union_structures__enhanced'),
except=['courriel', 'telephone'])
}},
CASE
Expand Down

0 comments on commit 3056811

Please sign in to comment.