Skip to content

Commit 4a44bec

Browse files
authored
Fix: show column descriptions for unaliased columns in UI (#1487)
* Use alias_or_name instead of alias * Remove dev code
1 parent 0455040 commit 4a44bec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/core/model/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ def column_descriptions(self) -> t.Dict[str, str]:
10041004
return {}
10051005

10061006
self._column_descriptions = {
1007-
select.alias: "\n".join(comment.strip() for comment in select.comments)
1007+
select.alias_or_name: "\n".join(comment.strip() for comment in select.comments)
10081008
for select in query.selects
10091009
if select.comments
10101010
}

0 commit comments

Comments
 (0)