[
https://issues.apache.org/jira/browse/PIG-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13968729#comment-13968729
]
Cheolsoo Park commented on PIG-3889:
------------------------------------
[~lbendig], actually I found your new test case fails with NPE after PIG-3888.
Since you set JobConf to null after the execution of fetch mode, the following
line causes NPE-
{code:title=TestFetch.java}
String expected =
UDFContext.getUDFContext().getJobConf().get("pig.job.submitted.timestamp");
{code}
Can you please fix it?
> Direct fetch doesn't set job submission timestamps
> --------------------------------------------------
>
> Key: PIG-3889
> URL: https://issues.apache.org/jira/browse/PIG-3889
> Project: Pig
> Issue Type: Bug
> Reporter: Lorand Bendig
> Assignee: Lorand Bendig
> Attachments: PIG-3889.patch
>
>
> The following query fails in fetch mode:
> {code}
> A = load 'data' as (a:chararray);
> B = FOREACH A generate 'a', CurrentTime();
> dump B;
> {code}
> Reason: CurrentTime() throws an exception if {{pig.job.submitted.timestamp}}
> is not set.
--
This message was sent by Atlassian JIRA
(v6.2#6252)