Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 7ceefc5

Browse files
popcornyluwcchang1115
authored andcommitted
Source migration
Signed-off-by: popcorny <celu@infuseai.io>
1 parent 40d0988 commit 7ceefc5

3 files changed

Lines changed: 105 additions & 5 deletions

File tree

dbt_project.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ require-dbt-version: [">=1.0.0", "<2.0.0"]
2222
models:
2323
jaffle_shop:
2424
materialized: table
25+
+tags: piperider
2526
staging:
2627
materialized: view
27-
+tags: piperider
28-
marts:
29-
+tags: piperider

models/staging/stg_customers.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ with source as (
44
Normally we would select from the table here, but we are using seeds to load
55
our data in this project
66
#}
7-
select * from {{ ref('raw_customers') }}
7+
select * from {{ ref('raw_customers_v2') }}
88

99
),
1010

1111
renamed as (
1212

1313
select
14-
id as customer_id,
14+
customer_id,
1515
first_name,
1616
last_name
1717

seeds/raw_customers_v2.csv

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
customer_id,first_name,last_name
2+
1,Michael,P.
3+
2,Shawn,M.
4+
3,Kathleen,P.
5+
4,Jimmy,C.
6+
5,Katherine,R.
7+
6,Sarah,R.
8+
7,Martin,M.
9+
8,Frank,R.
10+
9,Jennifer,F.
11+
10,Henry,W.
12+
11,Fred,S.
13+
12,Amy,D.
14+
13,Kathleen,M.
15+
14,Steve,F.
16+
15,Teresa,H.
17+
16,Amanda,H.
18+
17,Kimberly,R.
19+
18,Johnny,K.
20+
19,Virginia,F.
21+
20,Anna,A.
22+
21,Willie,H.
23+
22,Sean,H.
24+
23,Mildred,A.
25+
24,David,G.
26+
25,Victor,H.
27+
26,Aaron,R.
28+
27,Benjamin,B.
29+
28,Lisa,W.
30+
29,Benjamin,K.
31+
30,Christina,W.
32+
31,Jane,G.
33+
32,Thomas,O.
34+
33,Katherine,M.
35+
34,Jennifer,S.
36+
35,Sara,T.
37+
36,Harold,O.
38+
37,Shirley,J.
39+
38,Dennis,J.
40+
39,Louise,W.
41+
40,Maria,A.
42+
41,Gloria,C.
43+
42,Diana,S.
44+
43,Kelly,N.
45+
44,Jane,R.
46+
45,Scott,B.
47+
46,Norma,C.
48+
47,Marie,P.
49+
48,Lillian,C.
50+
49,Judy,N.
51+
50,Billy,L.
52+
51,Howard,R.
53+
52,Laura,F.
54+
53,Anne,B.
55+
54,Rose,M.
56+
55,Nicholas,R.
57+
56,Joshua,K.
58+
57,Paul,W.
59+
58,Kathryn,K.
60+
59,Adam,A.
61+
60,Norma,W.
62+
61,Timothy,R.
63+
62,Elizabeth,P.
64+
63,Edward,G.
65+
64,David,C.
66+
65,Brenda,W.
67+
66,Adam,W.
68+
67,Michael,H.
69+
68,Jesse,E.
70+
69,Janet,P.
71+
70,Helen,F.
72+
71,Gerald,C.
73+
72,Kathryn,O.
74+
73,Alan,B.
75+
74,Harry,A.
76+
75,Andrea,H.
77+
76,Barbara,W.
78+
77,Anne,W.
79+
78,Harry,H.
80+
79,Jack,R.
81+
80,Phillip,H.
82+
81,Shirley,H.
83+
82,Arthur,D.
84+
83,Virginia,R.
85+
84,Christina,R.
86+
85,Theresa,M.
87+
86,Jason,C.
88+
87,Phillip,B.
89+
88,Adam,T.
90+
89,Margaret,J.
91+
90,Paul,P.
92+
91,Todd,W.
93+
92,Willie,O.
94+
93,Frances,R.
95+
94,Gregory,H.
96+
95,Lisa,P.
97+
96,Jacqueline,A.
98+
97,Shirley,D.
99+
98,Nicole,M.
100+
99,Mary,G.
101+
100,Jean,M.
102+
101,CL,K.

0 commit comments

Comments
 (0)