Hi experts,
I've the following part of script in Apache Pig:
....
A = foreach Source_Data generate
(int) ID,
ToString( ToDate((long) Time), 'yyyy-MM-dd hh:ss:mm') as date,
(int) Code;
Store A into '.../newfile';
...
Now I want to create a new Script using Python UDF to guarantee that in my newfile on column Date (#1) I only have String in the format 'yyyy-MM-dd hh:ss:mm'.
Is possible to do that?
Many thanks!