File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 5050 def check_for_warehouse_host_var ():
5151 warehouse_host = Variable .get ("INCLUDEWAREHOUSE_HOST" , default = None )
5252 if warehouse_host :
53- print ("WAREHOUSE_HOST exists!" )
53+ print ("INCLUDEWAREHOUSE_HOST exists!" )
5454 else :
55- print ("WAREHOUSE_HOST variable is not set." )
55+ print ("INCLUDEWAREHOUSE_HOST variable is not set." )
5656
5757 t2 = PythonOperator (
5858 task_id = "check_for_warehouse_host_var" ,
Original file line number Diff line number Diff line change 99 ExecutionConfig ,
1010 RenderConfig ,
1111)
12+ from cosmos .profiles import PostgresUserPasswordProfileMapping
1213
1314profile_config = ProfileConfig (
1415 profile_name = Variable .get ("DBT_PROFILE_NAME" ),
15- profiles_yml_filepath = Variable .get ("DBT_PROFILES_YML_PATH" ),
1616 target_name = "prd" ,
17+ profile_mapping = PostgresUserPasswordProfileMapping (
18+ conn_id = "postgres_dev_svc"
19+ ),
1720)
1821
1922example_study_dag = DbtDag (
You can’t perform that action at this time.
0 commit comments