Skip to content

Commit c94486a

Browse files
author
Christopher Giroir
committed
chore: remove build_scope
1 parent b4b91d7 commit c94486a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sqlmesh/lsp/hints.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from sqlglot import exp
88
from sqlglot.expressions import Expression
99
from sqlglot.optimizer.normalize_identifiers import normalize_identifiers
10-
from sqlglot.optimizer.scope import build_scope
1110
from sqlmesh.core.model.definition import SqlModel
1211
from sqlmesh.lsp.context import LSPContext, ModelTarget
1312
from sqlmesh.lsp.uri import URI
@@ -123,10 +122,6 @@ def _get_type_hints_for_model_from_query(
123122
hints: t.List[types.InlayHint] = []
124123
try:
125124
query = normalize_identifiers(query.copy(), dialect=dialect)
126-
root = build_scope(query)
127-
128-
if not root:
129-
return []
130125

131126
return [
132127
hint

0 commit comments

Comments
 (0)