Skip to content

Commit

Permalink
chore(pipeline) : Rename the data_inclusion source to internal
Browse files Browse the repository at this point in the history
It makes more sense this way and keeps the rest of the sources
consistent.
  • Loading branch information
vperron committed Aug 2, 2024
1 parent 9bbf3e6 commit 69ec4cd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pipeline/dbt/models/_sources.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: 2

sources:
- name: data_inclusion
- name: internal
schema: public
tables:
- name: extra__geocoded_results

- name: data_inclusion_extra
- name: data_inclusion
schema: data_inclusion
tables:
- name: structures
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set source_model = source('data_inclusion', 'extra__geocoded_results') %}
{% set source_model = source('internal', 'extra__geocoded_results') %}

{% set table_exists = adapter.get_relation(database=source_model.database, schema=source_model.schema, identifier=source_model.name) is not none %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
WITH source AS (
{{ stg_source_header('data_inclusion_extra', 'services') }}
{{ stg_source_header('data_inclusion', 'services') }}
),

final AS (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
WITH source AS (
{{ stg_source_header('data_inclusion_extra', 'structures') }}
{{ stg_source_header('data_inclusion', 'structures') }}
),

final AS (
Expand Down

0 comments on commit 69ec4cd

Please sign in to comment.