Pig
  1. Pig
  2. PIG-1674

Pig should always use PigContext to get any property it needs

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Ashutosh Chauhan added a comment -

        There are places in code where pig uses System.getProperty() like

        userId = System.getProperty("user.name")
         String factoryName = System.getProperty("pig.data.tuple.factory.name");
        

        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.

        Show
        Ashutosh Chauhan added a comment - There are places in code where pig uses System.getProperty() like userId = System .getProperty( "user.name" ) String factoryName = System .getProperty( "pig.data.tuple.factory.name" ); 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ashutosh Chauhan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development