Paul Rogers created IMPALA-7894:
-----------------------------------
Summary: Parser does not catch double overflow
Key: IMPALA-7894
URL: https://issues.apache.org/jira/browse/IMPALA-7894
Project: IMPALA
Issue Type: Bug
Components: Frontend
Affects Versions: Impala 3.0
Reporter: Paul Rogers
Assignee: Paul Rogers
The test case {{ParserTest.TestNumericLiteralMinMaxValues()}} incorrectly
expects success on {{DOUBLE}} constant overflow and underflow:
{code:java}
ParsesOk(String.format("select %s1", Double.toString(Double.MIN_VALUE)));
ParsesOk(String.format("select %s1", Double.toString(Double.MAX_VALUE)));
{code}
These values are actually out of range as tested by
{{NumericLiteral.analyzeImpl()}}. However, the parser uses a code path that
bypasses this check.
Expected that the above tests will fail, not succeed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]