morrySnow commented on code in PR #20334:
URL: https://github.com/apache/doris/pull/20334#discussion_r1217469180
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/Literal.java:
##########
@@ -75,6 +75,8 @@ public static Literal of(Object value) {
return new FloatLiteral((Float) value);
} else if (value instanceof Double) {
return new DoubleLiteral((Double) value);
+ } else if (value instanceof BigDecimal) {
+ return new DecimalLiteral((BigDecimal) value);
Review Comment:
```suggestion
if (Config.enable_decimal_conversion) {
return new DecimalV3Literal((BigDecimal) value);
} else {
return new DecimalLiteral((BigDecimal) value);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]