YYYY-MM-DD 형식의 시간을 datetime으로 변환하여 나중에 수학을 수행하려고합니다.ToDate() 돼지 UDF 가져 오기가 실패합니다.
grunt> describe times_target;
times_target: {new_format: chararray,target: chararray}
grunt> dump times_target;
(2015-01-24,negative)
(2015-01-24,negative)
(2015-01-24,negative)
(2015-01-24,negative)
이것은 내가 뭘하려하고, 내가 가진 오류 :
grunt> C = FOREACH times_target GENERATE ToDate(new_format, 'yyyy-MM-dd');
2015-01-28 13:28:00,074 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve ToDate using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.]
내가 common.pig.jar를 등록하고 도움이되지 않았다. 내가 도대체 뭘 잘못하고있는 겁니까? ISO로 변환 할 수 있지만 왜 간단한 ToDate 작업을하지 않을까요?
미리 감사드립니다.
사용중인 돼지의 버전은 무엇입니까? – bridiver
응답 해 주셔서 감사합니다. 중요한 정보를 남겼습니다. 2012 년 중반부터 0.10.0을 사용하고 있습니다. –