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

ColumnMapKeyPrune fails to prune a subtree inside foreach

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.11
    • parser
    • None

    Description

      Sample code

      $ cat test/foreach.pig 
      daily = load 'nyse' as (exchange, symbol);
      grpd = group daily by exchange;
      uniquecnt = foreach grpd {
              sym = daily.symbol;
              uniq_sym = distinct sym;
              generate group, uniq_sym;
      };
      another = FOREACH uniquecnt GENERATE group;
      explain another;
      
      

      This breaks when it tries to prune uniq_sym->sym->innerload_daily

      2012-10-12 14:54:11,031 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2000: Error processing rule ColumnMapKeyPrune. Try -t ColumnMapKeyPrune

      Attachments

        1. pig-2968-trunk_v03.txt
          2 kB
          Koji Noguchi
        2. pig-2968-trunk_v02.txt
          2 kB
          Koji Noguchi
        3. pig-2968-trunk_v01.txt
          2 kB
          Koji Noguchi

        Activity

          People

            knoguchi Koji Noguchi
            knoguchi Koji Noguchi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: