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

Problem in using negative (-a)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • None
    • None

    Description

      Using negative, i.e., -a leads to exceptions.

      grunt> a = load 'myfile' as  (name:chararray, age:int, gpa:double);
      grunt> b = foreach a generate -gpa;
      grunt> dump b;
      
      2008-11-10 16:38:12,517 [main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - 0% complete
      2008-11-10 16:38:37,539 [main] ERROR org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - Map reduce job failed
      2008-11-10 16:38:37,540 [main] ERROR org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - Job failed!
      2008-11-10 16:38:37,542 [main] ERROR org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.Launcher - Error message from task (map) task_200809241441_19426_m_000000java.io.IOException: Received Error while processing the map plan.
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.runPipeline(PigMapBase.java:197)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:158)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.map(PigMapOnly.java:65)
              at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
              at org.apache.hadoop.mapred.MapTask.run(MapTask.java:227)
              at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2207)
      
      

      Attachments

        1. PIG-522.patch
          3 kB
          Pradeep Kamath

        Activity

          People

            pkamath Pradeep Kamath
            sms Santhosh Muthur Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: