Dump A;
1/22/2016
B = foreach A generate ToDate($0,"M/dd/yyyy");
C = foreach B {
year = (chararray)GetYear($0);
month = (chararray)GetMonth($0);
day = (chararray)GetDay($0);
generate CONCAT(CONCAT(CONCAT(year, '-'), CONCAT(month, '-')),day) as myDate;
}
Dump C;
(2016-1-22)
2条答案
按热度按时间hmae6n7t1#
您可以按todate转换所有值,并按><==符号进行比较。例子:
6pp0gazn2#