You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by xu...@apache.org on 2014/11/06 17:09:25 UTC
svn commit: r1637148 - /pig/trunk/test/e2e/pig/tests/nightly.conf
Author: xuefu
Date: Thu Nov 6 16:09:25 2014
New Revision: 1637148
URL: http://svn.apache.org/r1637148
Log:
PIG-4265: SUM functions returns different value in spark and mapreduce engine (Liyun via Xuefu)
Modified:
pig/trunk/test/e2e/pig/tests/nightly.conf
Modified: pig/trunk/test/e2e/pig/tests/nightly.conf
URL: http://svn.apache.org/viewvc/pig/trunk/test/e2e/pig/tests/nightly.conf?rev=1637148&r1=1637147&r2=1637148&view=diff
==============================================================================
--- pig/trunk/test/e2e/pig/tests/nightly.conf (original)
+++ pig/trunk/test/e2e/pig/tests/nightly.conf Thu Nov 6 16:09:25 2014
@@ -3815,13 +3815,13 @@ register ':SCRIPTHOMEPATH:/ruby/scriptin
a = load ':INPATH:/singlefile/studenttab10k' using PigStorage() as (name, age:int, gpa:double);
b = group a by name;
c = foreach b generate group, myfuncs.Sum(a.age), myfuncs.Sum(a.gpa);
-d = foreach c generate $0, $1, (double)((int)$2*100)/100;
+d = foreach c generate $0, $1, (double)(ROUND($2*100))/100;
store d into ':OUTPATH:';\,
'verify_pig_script' => q\
a = load ':INPATH:/singlefile/studenttab10k' using PigStorage() as (name, age:int, gpa:double);
b = group a by name;
c = foreach b generate group, SUM(a.age), SUM(a.gpa);
-d = foreach c generate $0, $1, (double)((int)$2*100)/100;
+d = foreach c generate $0, $1, (double)(ROUND($2*100))/100;
store d into ':OUTPATH:';\,
},
{