Skip to content

Commit

Permalink
chore(pipeline) : Convert 'PE' entities to 'FT'
Browse files Browse the repository at this point in the history
Some sources still transmit 'PE' types for their structures,
which leads to those being discarded.

Avant:

  data-inclusion=# select count(*) from public_dbt_test__audit.check_structure_int__union_structures__di_surrogate_id where value = 'PE';
  -[ RECORD 1 ]
  count | 1146

Après:

  data-inclusion=# select count(*) from public_dbt_test__audit.check_structure_int__union_structures__di_surrogate_id where value = 'PE';
  -[ RECORD 1 ]
  count | 0
  • Loading branch information
vperron committed Sep 19, 2024
1 parent c82d0dd commit f4b919e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ final AS (
labels_nationaux AS "labels_nationaux",
labels_autres AS "labels_autres",
thematiques AS "thematiques",
typologie AS "typologie",
CASE
WHEN typologie = 'PE' THEN 'FT'
ELSE typologie
END AS typologie,
date_maj AS "date_maj",
NULLIF(siret, '') AS "siret",
NULLIF(nom, '') AS "nom",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ final AS (
accessibilite AS "accessibilite",
labels_nationaux AS "labels_nationaux",
thematiques AS "thematiques",
typologie AS "typologie",
CASE
WHEN typologie = 'PE' THEN 'FT'
ELSE typologie
END AS typologie,
presentation_resume AS "presentation_resume",
{{ truncate_text("presentation_detail") }} AS "presentation_detail",
CAST(date_maj AS DATE) AS "date_maj",
Expand Down

0 comments on commit f4b919e

Please sign in to comment.