Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4327

NPE in constant folding with decimal

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      The query:

      SELECT dec * cast('123456789012345678901234567890.1234567' as decimal) FROM DECIMAL_PRECISION LIMIT 1

      fails with an NPE while constant folding. This only happens when the decimal is out of range of max precision.

        Attachments

        1. HIVE-4327.3.patch
          19 kB
          Gunther Hagleitner
        2. HIVE-4327.2.patch
          19 kB
          Gunther Hagleitner
        3. HIVE-4327.1.q
          8 kB
          Gunther Hagleitner

          Issue Links

            Activity

              People

              • Assignee:
                hagleitn Gunther Hagleitner
                Reporter:
                hagleitn Gunther Hagleitner
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: