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

Hive stack() UDTF Doesn't Support NULL Insert Values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.13.0, 0.14.0
    • 1.1.0
    • SQL, UDF
    • None

    Description

      The following tables exist:
      1. test_table – schema

      {"field_a":STRING, "field_b":STRING, "field_c":STRING}

      2. dual – schema

      {"field_1":INT}

      test_table contents:

      en	dbpedia	http://dbpedia.org/schools/CMU
      

      dual contents:

      1
      

      I tried the following query, and it fails:

      INSERT INTO TABLE test_table SELECT 
      stack(1,
      "en",
      "dbpedia",
      NULL
      ) AS (
      field_a,
      field_b,
      field_c
      ) FROM dual;
      

      The error returned: FAILED: NullPointerException null

      Attachments

        1. HIVE-8642.1.patch.txt
          14 kB
          Navis Ryu

        Activity

          People

            navis Navis Ryu
            nkelkar Nishant Kelkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: