Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public String toSqlImpl() {
// virtual slot of an alias function
// when we try to translate an alias function to Nereids style, the desc in the place holding slotRef
// is null, and we just need the name of col.
return col;
return "`" + col + "`";
} else if (desc.getSourceExprs() != null) {
if (!disableTableName && (ToSqlContext.get() == null || ToSqlContext.get().isNeedSlotRefId())) {
if (desc.getId().asInt() != 1) {
Expand Down