[
https://issues.apache.org/jira/browse/CALCITE-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346269#comment-17346269
]
Julian Hyde commented on CALCITE-4608:
--------------------------------------
Can you add a test case?
Also, change the Jira description to describe the problem rather than the
solution. I guess the problem is an NPE thrown while validating numeric literal
in scientific format?
Note that it's not necessary to wrap regular Jira text in "{{".
> Set scale and precision in SqlLiteral.createApproxNumeric function.
> -------------------------------------------------------------------
>
> Key: CALCITE-4608
> URL: https://issues.apache.org/jira/browse/CALCITE-4608
> Project: Calcite
> Issue Type: Bug
> Affects Versions: 1.26.0
> Reporter: Amrish Lal
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {{A NullPointerException is thrown in SqlNumericLiteral.isInteger(), due to
> "this.scale" being null. This can be reproduced by compiling SQL statement
> "SELECT * FROM testTable WHERE floatColumn > 1.7976931348623157E308".}}
> {{A null check was added through CALCITE-4199 to fix the
> NullPointerException; however, the root cause is that scale and precision are
> not being properly set in }}{{SqlLiteral.createApproxNumeric function which
> is called to handle }}{{APPROX_NUMERIC_LITERAL token.}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)