Skip to content

Commit 7bf4a82

Browse files
committed
Fix!: pass dialect to annotate_types and simplify
1 parent e4422cb commit 7bf4a82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqlmesh/core/renderer.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,9 @@ def _optimize_query(self, query: exp.Query, all_deps: t.Set[str]) -> exp.Query:
603603
quote_identifiers=self._quote_identifiers,
604604
),
605605
schema=self.schema,
606-
)
606+
dialect=self._dialect,
607+
),
608+
dialect=self._dialect,
607609
)
608610
except SqlglotError as ex:
609611
self._violated_rules[AmbiguousOrInvalidColumn] = ex

0 commit comments

Comments
 (0)