@@ -36,7 +36,7 @@ def import_dbt():
3636PROJECT_FILE = "/dbt_project.yml"
3737PROFILES_FILE = "/profiles.yml"
3838LOWER_DBT_V = "1.0.0"
39- UPPER_DBT_V = "1.5.0 "
39+ UPPER_DBT_V = "1.4.2 "
4040
4141
4242@dataclass
@@ -343,7 +343,6 @@ def _get_connection_creds(self) -> Tuple[Dict[str, str], str]:
343343 def set_connection (self ):
344344 rendered_credentials , conn_type = self ._get_connection_creds ()
345345
346- # this whole block should be refactored/extracted to method(s)
347346 if conn_type == "snowflake" :
348347 if rendered_credentials .get ("password" ) is None or rendered_credentials .get ("private_key_path" ) is not None :
349348 raise Exception ("Only password authentication is currently supported for Snowflake." )
@@ -369,8 +368,9 @@ def set_connection(self):
369368 "project" : rendered_credentials .get ("project" ),
370369 "dataset" : rendered_credentials .get ("dataset" ),
371370 }
372- # untested
373371 elif conn_type == "redshift" :
372+ if rendered_credentials .get ("password" ) is None or rendered_credentials .get ("method" ) == "iam" :
373+ raise Exception ("Only password authentication is currently supported for Redshift." )
374374 conn_info = {
375375 "driver" : conn_type ,
376376 "host" : rendered_credentials .get ("host" ),
@@ -379,18 +379,15 @@ def set_connection(self):
379379 "port" : rendered_credentials .get ("port" ),
380380 "dbname" : rendered_credentials .get ("dbname" ),
381381 }
382- # untested
383382 elif conn_type == "databricks" :
384383 conn_info = {
385384 "driver" : conn_type ,
386385 "catalog" : rendered_credentials .get ("catalog" ),
387386 "server_hostname" : rendered_credentials .get ("host" ),
388- # TODO may need to trim the / at http_path[0]
389387 "http_path" : rendered_credentials .get ("http_path" ),
390388 "schema" : rendered_credentials .get ("schema" ),
391389 "access_token" : rendered_credentials .get ("token" ),
392390 }
393- # untested
394391 elif conn_type == "postgres" :
395392 conn_info = {
396393 "driver" : "postgresql" ,
0 commit comments