xinyiZzz commented on a change in pull request #7265:
URL: https://github.com/apache/incubator-doris/pull/7265#discussion_r770388339
##########
File path:
fe/fe-core/src/main/java/org/apache/doris/analysis/DecimalLiteral.java
##########
@@ -231,6 +231,14 @@ public int getFracValue() {
return fracPart.intValue();
}
+ public void roundCeiling() {
+ value = value.setScale(0, 2);
Review comment:
Thats right
##########
File path:
fe/fe-core/src/main/java/org/apache/doris/analysis/DecimalLiteral.java
##########
@@ -231,6 +231,14 @@ public int getFracValue() {
return fracPart.intValue();
}
+ public void roundCeiling() {
+ value = value.setScale(0, 2);
+ }
+
+ public void roundFloor() {
+ value = value.setScale(0, 3);
Review comment:
Thats right
--
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]