I have the following relation in Apache PIG.
TSERIES: {ORDERED: {(timestamp: long,contentHost: chararray)},ts1: long}
And I want to do the following:
F = foreach TSERIES {
ts = filter ORDERED by timestamp > TSERIES.ts1;
generate ts;
}
In short, I want to keep all elements of bag ORDERED with a timestmap higher than ts1,
but pig won't allow, specifically this part ts = filter ORDERED by timestamp > TSERIES.ts1;.
Is this possible? I'm using version 0.9.2-cdh4.0.1 (cloudera).