Skip to content

Commit f13a20e

Browse files
committed
Use SQLMeshError instead of NotImplementedError
1 parent 71f1e2f commit f13a20e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sqlmesh/core/engine_adapter/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,15 +1222,15 @@ def create_catalog(self, catalog_name: str | exp.Identifier) -> None:
12221222
return self._create_catalog(exp.parse_identifier(catalog_name, dialect=self.dialect))
12231223

12241224
def _create_catalog(self, catalog_name: exp.Identifier) -> None:
1225-
raise NotImplementedError(
1225+
raise SQLMeshError(
12261226
f"Unable to create catalog '{catalog_name.sql(dialect=self.dialect)}' as automatic catalog management is not implemented in the {self.dialect} engine."
12271227
)
12281228

12291229
def drop_catalog(self, catalog_name: str | exp.Identifier) -> None:
12301230
return self._drop_catalog(exp.parse_identifier(catalog_name, dialect=self.dialect))
12311231

12321232
def _drop_catalog(self, catalog_name: exp.Identifier) -> None:
1233-
raise NotImplementedError(
1233+
raise SQLMeshError(
12341234
f"Unable to drop catalog '{catalog_name.sql(dialect=self.dialect)}' as automatic catalog management is not implemented in the {self.dialect} engine."
12351235
)
12361236

0 commit comments

Comments
 (0)