hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Dunning (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-389) Unary minus not supported in FILTER expressions
Date Thu, 21 Aug 2008 18:50:44 GMT

    [ 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.


Mime
View raw message