Skip to content

Commit 5617d5b

Browse files
committed
remove dead code
1 parent 1c82d4b commit 5617d5b

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

sqlmesh/core/engine_adapter/base.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@
8080
KEY_FOR_CREATABLE_TYPE = "CREATABLE_TYPE"
8181

8282

83-
# Use existing DataObjectType from shared module for grants
84-
85-
8683
@set_catalog()
8784
class EngineAdapter:
8885
"""Base class wrapping a Database API compliant connection.

sqlmesh/core/model/meta.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,6 @@ def _normalize(value: t.Any) -> t.Any:
161161

162162
return v
163163

164-
@classmethod
165-
def _validate_str_enum_value(cls, v: t.Any) -> t.Any:
166-
if isinstance(v, exp.Identifier):
167-
return v.this
168-
if isinstance(v, exp.Literal) and v.is_string:
169-
return v.this
170-
return v
171-
172164
@field_validator("table_format", "storage_format", mode="before")
173165
def _format_validator(cls, v: t.Any, info: ValidationInfo) -> t.Optional[str]:
174166
if isinstance(v, exp.Expression) and not (isinstance(v, (exp.Literal, exp.Identifier))):

sqlmesh/core/snapshot/evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2751,7 +2751,7 @@ def create(
27512751
is_snapshot_deployable: bool = kwargs["is_snapshot_deployable"]
27522752

27532753
if is_table_deployable and is_snapshot_deployable:
2754-
# We cloud deploy this to prod; create a proper managed table
2754+
# We could deploy this to prod; create a proper managed table
27552755
logger.info("Creating managed table: %s", table_name)
27562756
self.adapter.create_managed_table(
27572757
table_name=table_name,

0 commit comments

Comments
 (0)