Thanks for the patch Zhijie. It looks good.
But it says that datestamp constants are supported, but I guess if you pass '1970-01-01T00:00:00.000+00:00' to pig (say as an argument to a udf), i believe it would get interpreted as a string . Ie, we support chararray constants that can be cast to datetime, but not a datetime constant per se. Is that correct ?
(I think it makes sense to support datetime constants, using a format that does not cause ambiguity wrt chararray type. But that would be another jira).