JiajunBernoulli commented on code in PR #3422:
URL: https://github.com/apache/calcite/pull/3422#discussion_r1327919480
##########
core/src/main/java/org/apache/calcite/sql/SqlNumericLiteral.java:
##########
@@ -90,7 +90,7 @@ public boolean isExact() {
@Override public String toValue() {
BigDecimal bd = getValueNonNull();
if (isExact) {
- return getValueNonNull().toString();
+ return getValueNonNull().toPlainString();
Review Comment:
Why not use `bd.toPlainString()`?
And the `bd` should be `final`.
--
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]