File tree 3 files changed +4
-4
lines changed 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ CREATE OR REPLACE GIT REPOSITORY quickstart_common.public.quickstart_repo
23
23
ORIGIN = ' https://github.com/Carlylepoc/sfguide-getting-started-with-snowflake-devops' ; -- INSERT URL OF FORKED REPO HERE
24
24
25
25
26
- CREATE OR ALTER DATABASE QUICKSTART_PROD ;
26
+ CREATE OR ALTER DATABASE QUICKSTART_{{environment}} ;
27
27
28
28
29
29
-- To monitor data pipeline's completion
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ def main(df):
267
267
root = Root (Session .builder .getOrCreate ())
268
268
269
269
# create views in Snowflake
270
- silver_schema = root .databases ["quickstart_prod " ].schemas ["silver" ]
270
+ silver_schema = root .databases [f"quickstart_ { os . environ [ 'environment' ] } " ].schemas ["silver" ]
271
271
silver_schema .user_defined_functions .create (
272
272
map_city_to_airport , mode = CreateMode .or_replace
273
273
)
Original file line number Diff line number Diff line change 1
1
use role accountadmin;
2
- use schema quickstart_prod .gold ;
2
+ use schema quickstart_{{environment}} .gold;
3
3
4
4
5
5
-- declarative target table of pipeline
@@ -16,7 +16,7 @@ create or alter table vacation_spots (
16
16
, zoo_cnt int
17
17
, korean_restaurant_cnt int
18
18
-- STEP 5: INSERT CHANGES HERE
19
- ) data_retention_time_in_days = 1 ;
19
+ ) data_retention_time_in_days = {{retention_time}} ;
20
20
21
21
22
22
-- task to merge pipeline results into target table
You can’t perform that action at this time.
0 commit comments