2424from dbt .clients import agate_helper
2525from dbt .clients .agate_helper import ColumnTypeBuilder , NullableAgateType , _NullMarker
2626from dbt .events import AdapterLogger
27- from dbt .exceptions import warn_or_error
2827from dbt .utils import executor
2928
3029import dbt .adapters .impala .cloudera_tracking as tracker
@@ -103,7 +102,7 @@ def list_relations_without_caching(
103102
104103 try :
105104 results = self .execute_macro (LIST_RELATIONS_MACRO_NAME , kwargs = kwargs )
106- except dbt .exceptions .RuntimeException as e :
105+ except dbt .exceptions .DbtRuntimeError as e :
107106 errmsg = getattr (e , "msg" , "" )
108107 if f"Database '{ schema_relation } ' not found" in errmsg :
109108 return []
@@ -115,7 +114,7 @@ def list_relations_without_caching(
115114 relations = []
116115 for row in results :
117116 if len (row ) != 2 :
118- raise dbt .exceptions .RuntimeException (
117+ raise dbt .exceptions .DbtRuntimeError (
119118 f'Invalid value from "show table extended ...", '
120119 f"got { len (row )} values, expected 4"
121120 )
@@ -152,7 +151,7 @@ def get_columns_in_relation(self, relation: Relation) -> List[ImpalaColumn]:
152151 try :
153152 rows : List [agate .Row ] = super ().get_columns_in_relation (relation )
154153 columns = self .parse_describe_extended (relation , rows )
155- except dbt .exceptions .RuntimeException as e :
154+ except dbt .exceptions .DbtRuntimeError as e :
156155 # impala would throw error when table doesn't exist
157156 errmsg = getattr (e , "msg" , "" )
158157 if (
0 commit comments