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

UDTF run in local fetch task does not return rows forwarded during GenericUDTF.close()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.3.0, 2.0.0
    • UDF
    • None

    Description

      Using the example UDTF GenericUDTFCount2, which is part of hive-contrib:

      create temporary function udtfCount2 as 'org.apache.hadoop.hive.contrib.udtf.example.GenericUDTFCount2';
      
      set hive.fetch.task.conversion=minimal;
      -- Task created, correct output (2 rows)
      select udtfCount2() from src;
      
      set hive.fetch.task.conversion=more;
      -- Runs in local task, incorrect output (0 rows)
      select udtfCount2() from src;
      

      Attachments

        1. HIVE-11892.2.patch.branch-1
          45 kB
          Jason Dere
        2. HIVE-11892.2.patch
          48 kB
          Jason Dere
        3. HIVE-11892.1.patch
          6 kB
          Jason Dere

        Issue Links

          Activity

            People

              jdere Jason Dere
              jdere Jason Dere
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: