You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2014/02/08 09:03:19 UTC

[jira] [Updated] (PIG-3757) Make scalar work

     [ https://issues.apache.org/jira/browse/PIG-3757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dai updated PIG-3757:
----------------------------

    Attachment: PIG-3757-1.patch

The following case works with the patch:
{code}
a = load 'student.txt' using PigStorage() as (name, age, gpa);
b = group a all;
c = foreach b generate AVG(a.gpa) as avg, MAX(a.gpa) as max;
y = foreach a generate name, (gpa - c.avg) / c.max;
dump y;
{code}
Still need some hardening.

> Make scalar work
> ----------------
>
>                 Key: PIG-3757
>                 URL: https://issues.apache.org/jira/browse/PIG-3757
>             Project: Pig
>          Issue Type: Sub-task
>          Components: tez
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: tez-branch
>
>         Attachments: PIG-3757-1.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)