pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vivek Padmanabhan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIG-2135) Pig 0.9 ignoring Multiple filter conditions joined with AND/OR
Date Tue, 21 Jun 2011 07:49:47 GMT
Pig 0.9 ignoring Multiple filter conditions joined with AND/OR 

                 Key: PIG-2135
                 URL: https://issues.apache.org/jira/browse/PIG-2135
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.9.0
            Reporter: Vivek Padmanabhan
            Priority: Critical
             Fix For: 0.9.0

When I have multiple filter statements joined by AND/OR , except for the first condition all
other conditions are ignored.
For example in the below script the second condition (org.udfs.Func09('e',w) == 1) is ignored

a = load 'sample_input' using PigStorage(',')  as (q:chararray,w:chararray);
b = filter a by org.udfs.Func09('f1',q) == 1  AND  org.udfs.Func09('e',w) == 1 ;
dump b;

Output from the script
(f1,e)  --> this record should have been filtered by the second condition

Input for the script;

The explain of the alias b shows that the second condition is not included in the plan itself.
The above statements works fine with Pig 0.8.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message