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

TOBAG udfs ignores columns with null value; it does not use input type to determine output schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • None
    • None
    • Reviewed

    Description

      TOBAG udf ignores columns with null value

      R4= foreach B generate $0,  TOBAG( id, null, id,null );
      grunt> dump R4;
      1000    {(1),(1)}
      1000    {(2),(2)}
      1000    {(3),(3)}
      1000    {(4),(4)}
      

      TOBAG does not use input type to determine output schema

      grunt> B1 = foreach B generate TOBAG( 1, 2, 3);         
      grunt> describe B1;
      B1: {{null}}
      

      Attachments

        1. PIG-1656.2.patch
          8 kB
          Thejas Nair
        2. PIG-1656.1.patch
          7 kB
          Thejas Nair

        Activity

          People

            thejas Thejas Nair
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: