Grokbase Groups Pig dev August 2008
FAQ
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.

Search Discussions

  • Ted Dunning (JIRA) at Aug 21, 2008 at 6:51 pm
    [ 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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedAug 21, '08 at 6:51p
activeAug 21, '08 at 6:51p
posts2
users1
websitepig.apache.org

1 user in discussion

Ted Dunning (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase