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

Incorrect results from arithmetic expression

    XMLWordPrintableJSON

Details

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

    Description

      Query:

      a = load '/user/pig/tests/data/singlefile/studenttab10k' as (name:chararray, age:int, gpa:double);                    
      b = foreach a generate 1 + 0.2f + 253645L, gpa+1;                                                                     
      store b into '/tmp/arithtest';                                                                                        
      
      

      Results
      25365.2 2.9
      25365.2 4.65
      ...

      The first projection above has 253645 as a Long constant. The results have 25365.2 which is an order less

      Attachments

        1. Pig321_parser.patch
          3 kB
          Pi Song

        Activity

          People

            pi_song Pi Song
            pkamath Pradeep Kamath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: