-Multiple CurrentTime calls return the same timestamp
Danfeng Li 2013-02-27, 00:09
I called CurrentTime() twice in my pig code, but the final results are end up as the same timestamp.
The code is following:
A = load 'test.txt' as (a:chararray);
B = foreach A generate a, CurrentTime();
C = foreach B generate a as a,
$1 as time1,
CurrentTime() as time2;
The results are
Note how the time1 and time2 in "C" are the same, and time1 is different from the time in B.
Are this a bug or a feature?
If this is a feature, how do I preserve the timestamp in B.
Cheolsoo Park 2013-02-27, 00:51
Jonathan Coveney 2013-02-27, 09:30
Danfeng Li 2013-02-27, 19:02
Jonathan Coveney 2013-02-27, 22:49