Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-5048

HiveUDTF fail if it is the first expression in projection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0, 0.16.1
    • impl
    • None
    • Reviewed

    Description

      The following script fail:

      define explode HiveUDTF('explode');
      A = load 'bag.txt' as (a0:{(b0:chararray)});
      B = foreach A generate explode(a0);
      dump B;
      

      Message: Unimplemented at org.apache.pig.data.UnlimitedNullTuple.size(UnlimitedNullTuple.java:31)

      If it is not the first projection, the script pass:

      define explode HiveUDTF('explode');
      A = load 'bag.txt' as (a0:{(b0:chararray)});
      B = foreach A generate a0, explode(a0);
      dump B;
      

      Thanks nkollar reporting it!

      Attachments

        1. PIG-5048.patch
          2 kB
          Nándor Kollár
        2. PIG-5048-1.patch
          12 kB
          Nándor Kollár
        3. PIG-5048-2.patch
          14 kB
          Nándor Kollár
        4. PIG-5048-3.patch
          13 kB
          Nándor Kollár
        5. PIG-5048-4.patch
          7 kB
          Nándor Kollár

        Activity

          People

            nkollar Nándor Kollár
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: