This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit f5de3d59e0673b1f95cefc5d0f7f279562f46418
Author: zclllyybb <zhaochan...@selectdb.com>
AuthorDate: Mon Jul 1 20:18:54 2024 +0800

    [fix](stmt) fix show create table consistency (#37074)
---
 fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java 
b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java
index 29f99b219aa..6bf11b0a953 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SlotRef.java
@@ -271,7 +271,7 @@ public class SlotRef extends Expr {
             // 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) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to