From c4899412c4396cacc405c68e591d6216f7dfd9fa Mon Sep 17 00:00:00 2001 From: popcorny Date: Thu, 15 Jun 2023 16:32:29 +0800 Subject: [PATCH] Source migration Signed-off-by: popcorny --- dbt_project.yml | 4 +--- models/staging/stg_customers.sql | 4 ++-- seeds/raw_customers.csv | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 7e02c9c35..8d69027de 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -22,8 +22,6 @@ require-dbt-version: [">=1.0.0", "<2.0.0"] models: jaffle_shop: materialized: table + +tags: piperider staging: materialized: view - +tags: piperider - marts: - +tags: piperider diff --git a/models/staging/stg_customers.sql b/models/staging/stg_customers.sql index cad047269..5b8b77a80 100644 --- a/models/staging/stg_customers.sql +++ b/models/staging/stg_customers.sql @@ -4,14 +4,14 @@ with source as ( Normally we would select from the table here, but we are using seeds to load our data in this project #} - select * from {{ ref('raw_customers') }} + select * from {{ ref('raw_customers_v2') }} ), renamed as ( select - id as customer_id, + customer_id, first_name, last_name diff --git a/seeds/raw_customers.csv b/seeds/raw_customers.csv index b3e6747d6..9e0ae8fc9 100644 --- a/seeds/raw_customers.csv +++ b/seeds/raw_customers.csv @@ -99,3 +99,4 @@ id,first_name,last_name 98,Nicole,M. 99,Mary,G. 100,Jean,M. +101,CL,K.