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

Pig Local give wrong results

    XMLWordPrintableJSON

Details

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

    Description

      Pig Local mode gives wrong results (but Pig + Hadoop give correct results) . This created issues for users who tried to debug in local mode...

      Here's my pig code:

      a = load '/homes/amiry/tmp/my_test.txt' as (c1,c2,c3);
      b = group a by c1;
      c = foreach b {
      d = order a by c3;
      generate d;
      }
      dump c;

      Pig + Hadoop:

      (

      {(abc, http://www.sss.net, a), (abc, http://www.rrr.com, b)}

      )
      (

      {(def, http://local.yahoo.com/, d), (def, http://lmn.com/, f), (def, http://xyz.com/, g)}

      )

      Pig Local:
      (

      {(abc, http://www.sss.net, a), (abc, http://www.rrr.com, b)}

      )
      ({})

      Input:

      abc http://www.rrr.com b
      abc http://www.sss.net a
      def http://local.yahoo.com/ d
      def http://lmn.com/ f
      def http://xyz.com/ g

      Attachments

        Issue Links

          Activity

            People

              pkamath Pradeep Kamath
              amirhyoussefi Amir Youssefi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: