diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/DecimalLiteral.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/DecimalLiteral.java index 2d70117a1a4ec9..9d5649afded082 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/DecimalLiteral.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/DecimalLiteral.java @@ -266,7 +266,7 @@ public String toSqlImpl() { @Override public String getStringValue() { - return value.toString(); + return value.toPlainString(); } @Override diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalLiteral.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalLiteral.java index ea198d947aef65..4ffc92c634d709 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalLiteral.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalLiteral.java @@ -110,4 +110,14 @@ public boolean equals(Object o) { DecimalLiteral literal = (DecimalLiteral) o; return Objects.equals(dataType, literal.dataType); } + + @Override + public String toSql() { + return value.toPlainString(); + } + + @Override + public String toString() { + return toSql(); + } } diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalV3Literal.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalV3Literal.java index ce80527340533d..c797e93cb6d673 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalV3Literal.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DecimalV3Literal.java @@ -121,4 +121,14 @@ public boolean equals(Object o) { DecimalV3Literal literal = (DecimalV3Literal) o; return Objects.equals(dataType, literal.dataType); } + + @Override + public String toSql() { + return value.toPlainString(); + } + + @Override + public String toString() { + return toSql(); + } }