Apologies for the formatting of the previous email.  Here's the question 
properly formatted:
Hi All,
I have a statement like this:
-- A is omitted, loads dataB = FOREACH A GENERATE FLATTEN(data1.b.v) as 
dataPoint1, FLATTEN(data2.b.v) as dataPoint2;C = FILTER B BY dataPoint1 == 
'sampleDataPoint';
I'd like to generate a new filter based on the results of C.  For instance, I'd 
like to do something like this:D = FILTER B BY datapoint1 == C.dataPoint2;
(This would look for all rows in B where dataPoint1 is the same as the matching 
dataPoint2 to 'sampleDataPoint'.)
For example:  (format: dataPoint1,datapoint2)
B would return:1,21,42,82,13,78,7
If sampleDataPoint =2, C would return2,82,1
I'd like D to return:1,21,48,7
Is there a clever way to do this that I'm missing?  Thanks!-Mike
> From: [email protected]
> To: [email protected]
> Subject: Filter based on results of previous filter
> Date: Mon, 19 Mar 2012 15:49:10 -0400
> 
> 
> Hi All,
> I have a statement like this:
> -- A is omitted, loads dataB = FOREACH A GENERATE FLATTEN(data1.b.v) as 
> dataPoint1, FLATTEN(data2.b.v) as dataPoint2;C = FILTER B BY dataPoint1 == 
> 'sampleDataPoint';
> I'd like to generate a new filter based on the results of C.  For instance, 
> I'd like to do something like this:D = FILTER B BY datapoint1 == C.dataPoint2;
> (This would look for all rows in B where dataPoint1 is the same as the 
> matching dataPoint2 to 'sampleDataPoint'.)
> For example:  (format: dataPoint1,datapoint2)
> B would return:1,21,42,82,13,78,7
> If sampleDataPoint =2, C would return2,82,1
> I'd like D to return:1,21,48,7
> Is there a clever way to do this that I'm missing?  Thanks!-Mike              
>                           
                                          

Reply via email to