looks like (long) b is getting the wrong b. Make the names different?
On Wed, Nov 9, 2011 at 5:06 PM, Jonathan Coveney <[email protected]> wrote: > relation = load 'relation' as (val1:int,val2:int,val3:int); > > b = load 'temp'; > > relation2 = FOREACH (GROUP relation BY val1) { > a = COUNT(relation.val2); > b = SUM(relation.val3); > GENERATE group, (long)a, (long)b; > } > > in pig 8 this works, in pig 9 it doesn't. > > <file regress, line 8, column 33> Invalid scalar projection: b : A column > needs to be projected from a relation for it to be used as a scalar > Details at logfile: /var/log/pig/pig_1320887043189.log > > Just wondering if this is a known issue, or if I should make a jira? >
