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

posexplode() UDTF fails with a NullPointerException on NULL columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • Query Processor
    • None

    Description

      posexplode() fails with a NullPointerException in GenericUDTFPosExplode.process if run against a column containing NULL values.

      explode() has a null check covering this case. I've attached a patch adding the equivalent check to posexplode(), and updating the test case to include a NULL value.

      Attachments

        1. HIVE-7146.patch
          1 kB
          Stephen Veiss

        Activity

          People

            sveiss Stephen Veiss
            sveiss Stephen Veiss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: