You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Ted Dunning (JIRA)" <ji...@apache.org> on 2008/08/21 20:50:44 UTC

[jira] Commented: (PIG-389) Unary minus not supported in FILTER expressions

    [ https://issues.apache.org/jira/browse/PIG-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12624449#action_12624449 ] 

Ted Dunning commented on PIG-389:
---------------------------------

Here is the script

log = LOAD 'tutorial/data/excite-small.log' USING PigStorage('\t') as (ip, date, query);

t1 = GROUP log by ip;
describe t1;

counts = FOREACH t1 {
   cnt = COUNT(log);
   GENERATE group as ip, cnt as cnt;
}
describe counts;

r = FILTER counts by -cnt > 2;
describe r;
dump r;


> Unary minus not supported in FILTER expressions
> -----------------------------------------------
>
>                 Key: PIG-389
>                 URL: https://issues.apache.org/jira/browse/PIG-389
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.1.0
>            Reporter: Ted Dunning
>
> This script fails due to the "-cnt" expression.  removing the negation allows it to succeed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.