I think you just want this:
filt = filter colors_in by $color_filter;
(no quotes)
D
On Mon, Aug 27, 2012 at 1:50 PM, Duckworth, Will
wrote:
> I am trying to use a parameter as the expression in a filter.
>
> Assuming:
>
> colors_in = load ‘$in_path’ as (color:chararray);
> flt = filter colors_
There are a couple ways to do this. One is to turn your filter into a
replicated join. IE put the colors you want in a separate file, and then
just join on color. Since it is an equijoin, it's essentially a big or
statement.
The second way would be the use the parameter approach, and then make a U
I am trying to use a parameter as the expression in a filter.
Assuming:
colors_in = load ‘$in_path’ as (color:chararray);
flt = filter colors_in by color == ‘blue’ or color == ‘green’;
I would like to use this instead:
flt = filter colors_in by ‘$color_filter’;
But I get an unexpected symbol n