Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

IF-ELSE

$
0
0
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

Viewing all articles
Browse latest Browse all 5648

Trending Articles