You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Created) (JIRA)" <ji...@apache.org> on 2012/03/14 00:30:40 UTC

[jira] [Created] (PIG-2584) Command line arguments for Pig script

Command line arguments for Pig script
-------------------------------------

                 Key: PIG-2584
                 URL: https://issues.apache.org/jira/browse/PIG-2584
             Project: Pig
          Issue Type: Improvement
          Components: impl
            Reporter: Daniel Dai
            Priority: Minor
             Fix For: 0.11


We did that for Jython embeded script. It is also useful in Pig script itself:
command line: pig a.pig student.txt output

a.pig:
a = load '$1' as (a0, a1);
store a into '$2';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2584) Command line arguments for Pig script

Posted by "Daniel Dai (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228964#comment-13228964 ] 

Daniel Dai commented on PIG-2584:
---------------------------------

Sounds good to me.
                
> Command line arguments for Pig script
> -------------------------------------
>
>                 Key: PIG-2584
>                 URL: https://issues.apache.org/jira/browse/PIG-2584
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>            Reporter: Daniel Dai
>            Priority: Minor
>             Fix For: 0.11
>
>
> We did that for Jython embeded script. It is also useful in Pig script itself:
> command line: pig a.pig student.txt output
> a.pig:
> a = load '$1' as (a0, a1);
> store a into '$2';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2584) Command line arguments for Pig script

Posted by "Prashant Kommireddi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228835#comment-13228835 ] 

Prashant Kommireddi commented on PIG-2584:
------------------------------------------

Nice improvement recommendation! I think dollar notation could be confused with positional reference? Agree with Jonathan, may be we should plan on using a different symbol.
                
> Command line arguments for Pig script
> -------------------------------------
>
>                 Key: PIG-2584
>                 URL: https://issues.apache.org/jira/browse/PIG-2584
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>            Reporter: Daniel Dai
>            Priority: Minor
>             Fix For: 0.11
>
>
> We did that for Jython embeded script. It is also useful in Pig script itself:
> command line: pig a.pig student.txt output
> a.pig:
> a = load '$1' as (a0, a1);
> store a into '$2';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-2584) Command line arguments for Pig script

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-2584:
--------------------------------

    Fix Version/s:     (was: 0.11)
                   0.12

Moving to 0.12 since nobody is working on this
                
> Command line arguments for Pig script
> -------------------------------------
>
>                 Key: PIG-2584
>                 URL: https://issues.apache.org/jira/browse/PIG-2584
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>            Reporter: Daniel Dai
>            Priority: Minor
>             Fix For: 0.12
>
>
> We did that for Jython embeded script. It is also useful in Pig script itself:
> command line: pig a.pig student.txt output
> a.pig:
> a = load '$1' as (a0, a1);
> store a into '$2';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIG-2584) Command line arguments for Pig script

Posted by "Jonathan Coveney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228839#comment-13228839 ] 

Jonathan Coveney commented on PIG-2584:
---------------------------------------

why not use @1, @2, and so on, consistent with bash? @argv[1] is pretty ugly...
                
> Command line arguments for Pig script
> -------------------------------------
>
>                 Key: PIG-2584
>                 URL: https://issues.apache.org/jira/browse/PIG-2584
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>            Reporter: Daniel Dai
>            Priority: Minor
>             Fix For: 0.11
>
>
> We did that for Jython embeded script. It is also useful in Pig script itself:
> command line: pig a.pig student.txt output
> a.pig:
> a = load '$1' as (a0, a1);
> store a into '$2';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2584) Command line arguments for Pig script

Posted by "Daniel Dai (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228833#comment-13228833 ] 

Daniel Dai commented on PIG-2584:
---------------------------------

Oh yes, we cannot use $1, $2, maybe $argv[1], $argv[2]?
                
> Command line arguments for Pig script
> -------------------------------------
>
>                 Key: PIG-2584
>                 URL: https://issues.apache.org/jira/browse/PIG-2584
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>            Reporter: Daniel Dai
>            Priority: Minor
>             Fix For: 0.11
>
>
> We did that for Jython embeded script. It is also useful in Pig script itself:
> command line: pig a.pig student.txt output
> a.pig:
> a = load '$1' as (a0, a1);
> store a into '$2';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2584) Command line arguments for Pig script

Posted by "Jonathan Coveney (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228811#comment-13228811 ] 

Jonathan Coveney commented on PIG-2584:
---------------------------------------

Agree 400% that this is useful, though do we want to do $1, $2, etc? It is a bit confusing given the $name syntax we also have... I guess we can just distinguish between $number and $name.
                
> Command line arguments for Pig script
> -------------------------------------
>
>                 Key: PIG-2584
>                 URL: https://issues.apache.org/jira/browse/PIG-2584
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>            Reporter: Daniel Dai
>            Priority: Minor
>             Fix For: 0.11
>
>
> We did that for Jython embeded script. It is also useful in Pig script itself:
> command line: pig a.pig student.txt output
> a.pig:
> a = load '$1' as (a0, a1);
> store a into '$2';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira