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

union-onschema projects null schema at parsing stage for some queries

    XMLWordPrintableJSON

Details

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

    Description

      If the input relations of union-onschema have different aliases in the schemas, a subsequent statement that refers to a column alias in the union fails.

      eg

      grunt> l1 = load 'x' as (a);   
      grunt> l2 = load 'x' as (a,b); 
      grunt> u = union onschema l1,l2;
      grunt> o = order u by a;        
      2010-10-22 14:33:56,086 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Invalid alias: a in null
      Details at logfile: /Users/tejas/pig-0.8/branch-0.8/pig_1287783217811.log
      

      Attachments

        1. PIG-1694.1.patch
          12 kB
          Thejas Nair

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: