Skip to content

Commit f22a006

Browse files
authored
Fix: bump sqlglot to v18.12.0 (#1553)
* Fix: bump sqlglot to v18.12.0 * Get rid of a couple of #type: ignore
1 parent 604a164 commit f22a006

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"requests",
4747
"rich",
4848
"ruamel.yaml",
49-
"sqlglot~=18.11.0",
49+
"sqlglot~=18.12.0",
5050
],
5151
extras_require={
5252
"bigquery": [

sqlmesh/core/macros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def columns_to_types(self, model_name: str) -> t.Dict[str, exp.DataType]:
275275
if columns_to_types is None:
276276
raise SQLMeshError(f"Schema for model '{model_name}' can't be statically determined.")
277277

278-
return columns_to_types # type: ignore
278+
return columns_to_types
279279

280280

281281
class macro(registry_decorator):

sqlmesh/core/model/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def update_schema(
504504
nested_set(
505505
self.mapping_schema,
506506
tuple(str(part) for part in table.parts),
507-
{k: v.sql(dialect=self.dialect) for k, v in mapping_schema.items()}, # type: ignore
507+
{k: v.sql(dialect=self.dialect) for k, v in mapping_schema.items()},
508508
)
509509
else:
510510
# Reset the entire mapping if at least one upstream dependency is missing from the mapping

0 commit comments

Comments
 (0)