Skip to content

Commit c2c82b9

Browse files
committed
fix: extreme value representation of a double constant
1 parent 091fc3c commit c2c82b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/sqlancer/databend/ast/DatabendConstant.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ public double getValue() {
5353
@Override
5454
public String toString() {
5555
if (value == Double.POSITIVE_INFINITY) {
56-
return "'+Inf'";
56+
return "3.40282347e+38";
5757
} else if (value == Double.NEGATIVE_INFINITY) {
58-
return "'-Inf'";
58+
return "-3.40282347e+38";
5959
}
6060

61-
62-
return String.valueOf(value).toLowerCase(); // TODO 待databend支持大写E再去掉小写转换
61+
return String.valueOf(value);
6362
}
6463

6564
}

0 commit comments

Comments
 (0)