Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7894

Parser does not catch double overflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Impala 3.0
    • None
    • Frontend
    • None
    • ghx-label-7

    Description

      The test case ParserTest.TestNumericLiteralMinMaxValues() incorrectly expects success on DOUBLE constant overflow and underflow:

          ParsesOk(String.format("select %s1", Double.toString(Double.MIN_VALUE)));
          ParsesOk(String.format("select %s1", Double.toString(Double.MAX_VALUE)));
      

      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.

      Attachments

        Issue Links

          Activity

            People

              Paul.Rogers Paul Rogers
              Paul.Rogers Paul Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: