Skip to content

Commit 9a720c8

Browse files
fix(fabric): Use SchemaName instead of t.Union
1 parent eaba56a commit 9a720c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqlmesh/core/engine_adapter/fabric.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from sqlmesh.utils.errors import SQLMeshError
1212

1313
if t.TYPE_CHECKING:
14-
from sqlmesh.core._typing import TableName
14+
from sqlmesh.core._typing import TableName, SchemaName
1515

1616

1717
from sqlmesh.core.engine_adapter.mixins import LogicalMergeMixin
@@ -379,7 +379,7 @@ def set_current_catalog(self, catalog_name: str) -> None:
379379

380380
def drop_schema(
381381
self,
382-
schema_name: t.Union[str, exp.Table],
382+
schema_name: SchemaName,
383383
ignore_if_not_exists: bool = True,
384384
cascade: bool = False,
385385
**drop_args: t.Any,
@@ -411,7 +411,7 @@ def drop_schema(
411411

412412
def create_schema(
413413
self,
414-
schema_name: t.Union[str, exp.Table],
414+
schema_name: SchemaName,
415415
ignore_if_exists: bool = True,
416416
**kwargs: t.Any,
417417
) -> None:
@@ -555,7 +555,7 @@ def ctas(
555555

556556
def create_view(
557557
self,
558-
view_name: t.Union[str, exp.Table],
558+
view_name: SchemaName,
559559
query_or_df: t.Any,
560560
columns_to_types: t.Optional[t.Dict[str, exp.DataType]] = None,
561561
replace: bool = True,

0 commit comments

Comments
 (0)