You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2018/11/27 00:43:00 UTC

[jira] [Created] (IMPALA-7894) Parser does not catch double overflow

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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org