Pig
  1. Pig
  2. PIG-2674

Document how parameter values that contain spaces can be passed to Pig

    Details

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

      Description

      I tried to run this on pig-0.9 branch and pig-trunk. This isn't fixed!

      Try--

      java -cp pig.jar org.apache.pig.Main -x local -f temp.pig -p "NAME=Aniket Mokashi"
      

      temp.pig-

      a = load '1.txt';
      b = foreach a generate '$NAME';
      dump b;
      

        Issue Links

          Activity

          Aniket Mokashi created issue -
          Aniket Mokashi made changes -
          Field Original Value New Value
          Link This issue relates to PIG-2458 [ PIG-2458 ]
          Hide
          Dmitriy V. Ryaboy added a comment -

          try -p "NAME='Aniket Mokashi'"

          Show
          Dmitriy V. Ryaboy added a comment - try -p "NAME='Aniket Mokashi'"
          Hide
          Aniket Mokashi added a comment -

          Yes. That works. "NAME=Aniket\ Mokashi" works too.
          Do we need this jira?

          Show
          Aniket Mokashi added a comment - Yes. That works. "NAME=Aniket\ Mokashi" works too. Do we need this jira?
          Dmitriy V. Ryaboy made changes -
          Labels docs simple
          Hide
          Dmitriy V. Ryaboy added a comment -

          Let's make this a documentation jira.

          Show
          Dmitriy V. Ryaboy added a comment - Let's make this a documentation jira.
          Dmitriy V. Ryaboy made changes -
          Summary Parameter substitution with spaces does not work Document how parameter values that contain spaces can be passed to Pig
          Daniel Dai made changes -
          Fix Version/s 0.11 [ 12318878 ]
          Fix Version/s 0.10.1 [ 12320547 ]
          Hide
          Julien Le Dem added a comment -

          this will be fixed in a future release

          Show
          Julien Le Dem added a comment - this will be fixed in a future release
          Julien Le Dem made changes -
          Fix Version/s 0.11 [ 12318878 ]
          Fix Version/s 0.10.1 [ 12320547 ]
          Aniket Mokashi made changes -
          Assignee Aniket Mokashi [ aniket486 ]
          Show
          Aniket Mokashi added a comment - Added to confluence at - https://cwiki.apache.org/confluence/display/PIG/FAQ#FAQ-Q%3AHowcanIpassaparameterwithspacetoapigscript%3F .
          Aniket Mokashi made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Aniket Mokashi
              Reporter:
              Aniket Mokashi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development