diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java index 93bcb92f58062a4..c0847957fcb23a8 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java @@ -184,7 +184,11 @@ public String toSql() { StringBuilder sb = new StringBuilder(); sb.append("DEFAULT "); if (value != null) { - sb.append('"').append(value).append('"'); + if (defaultValueExprDef != null) { + sb.append(value); + } else { + sb.append('"').append(value).append('"'); + } } else { sb.append("NULL"); }