[ 
https://issues.apache.org/jira/browse/PIG-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919133#action_12919133
 ] 

Ashutosh Chauhan commented on PIG-1674:
---------------------------------------

There are places in code where pig uses System.getProperty() like 
{code}
userId = System.getProperty("user.name")
 String factoryName = System.getProperty("pig.data.tuple.factory.name");
{code}

Since all system properties are copied into PigContext, pc should be used to 
later retrieve them. Getting them directly from System.getProperty() is 
inconsistent and brittle.

> Pig should always use PigContext to get any property it needs
> -------------------------------------------------------------
>
>                 Key: PIG-1674
>                 URL: https://issues.apache.org/jira/browse/PIG-1674
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Ashutosh Chauhan
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to