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

NPE in constant folding with decimal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.11.0
    • None
    • 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.1.q
          8 kB
          Gunther Hagleitner
        2. HIVE-4327.2.patch
          19 kB
          Gunther Hagleitner
        3. HIVE-4327.3.patch
          19 kB
          Gunther Hagleitner

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: