You can apply ternary operator or SPLIT function

2015-01-20 11:28 GMT+03:00 patcharee <patcharee.thong...@uni.no>:

> Hi,
>
> I know that there is no if-else in pig, but is it possible to implement
> this logic in some way "if a input parameter is null, skip this filter
> operation" ?
>
> IF ($MONTH != NULL)
>     data_filter_by_month = FILTER data by month == $MONTH;
>
> BR,
> Patcharee
>

Reply via email to