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

posexplode() UDTF fails with a NullPointerException on NULL columns

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: Query Processor
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: