Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1618 Switch to new parser generator technology
  3. PIG-1795

new parser : duplicate ConstantExpressions created in inner plan

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • impl
    • None

    Description

      For the query -

      A = load 'x' using org.apache.pig.TextLoader( 'a', 'b' ) as ( u:int, v:long, w:bytearray); 
      B = filter A by 2 > 1;
      

      The plan generated has duplicate ConstExpressions in the inner plan of the filter -

      Generated logical plan: #-----------------------------------------------
      # New Logical Plan:
      #-----------------------------------------------
      B: (Name: LOFilter Schema: null)
      |   |
      |   (Name: Constant Type: null Uid: null)
      |   
      |   (Name: GreaterThan Type: null Uid: null)
      |   |
      |   |---(Name: Constant Type: null Uid: null)
      |   |
      |   |---(Name: Constant Type: null Uid: null)
      |   
      |   (Name: Constant Type: null Uid: null)
      |
      |---A: (Name: LOLoad Schema: null)
      
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: