Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.35.0
Description
The following SqlOperatorTest
f.check("SELECT CAST(10e70 AS REAL)", "REAL NOT NULL", "Infinity");
crashes with the following top of stack trace:
Caused by: java.lang.NumberFormatException: Character I is neither a decimal digit number, decimal point, nor "e" notation exponential mark. at java.base/java.math.BigDecimal.<init>(BigDecimal.java:522) at java.base/java.math.BigDecimal.<init>(BigDecimal.java:405) at java.base/java.math.BigDecimal.<init>(BigDecimal.java:838) at java.base/java.math.BigDecimal.valueOf(BigDecimal.java:1318) at org.apache.calcite.linq4j.tree.ConstantExpression.write(ConstantExpression.java:109) at org.apache.calcite.linq4j.tree.ConstantExpression.accept(ConstantExpression.java:77)
Attachments
Issue Links
- links to