Skip to content

Commit a8c259d

Browse files
committed
fix unions
1 parent 1e6e318 commit a8c259d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/model/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ def columns_to_types(self) -> t.Optional[t.Dict[str, exp.DataType]]:
10081008

10091009
self._columns_to_types = {
10101010
select.output_name: select.type or exp.DataType.build("unknown")
1011-
for select in query.expressions
1011+
for select in query.selects
10121012
}
10131013

10141014
if "*" in self._columns_to_types:

0 commit comments

Comments
 (0)