Grokbase Groups Pig dev April 2008
FAQ
parameter substitution broken with some commands
------------------------------------------------

Key: PIG-218
URL: https://issues.apache.org/jira/browse/PIG-218
Project: Pig
Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Olga Natkovich


If parameter value is generated via a command, it would fail for some commands. Example:

%declare cmd `/usr/local/bin/perl -e 'print "studenttab10k"'`

This command fails because currently the command is executed via call to Runtime.exec(cmd). In this case, default tokenizer is used to split the command and it does not respect the quotes.

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

Search Discussions

  • Olga Natkovich (JIRA) at Apr 23, 2008 at 11:28 pm
    [ https://issues.apache.org/jira/browse/PIG-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-218:
    -------------------------------

    Attachment: PIG-218.patch
    parameter substitution broken with some commands
    ------------------------------------------------

    Key: PIG-218
    URL: https://issues.apache.org/jira/browse/PIG-218
    Project: Pig
    Issue Type: Bug
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Attachments: PIG-218.patch


    If parameter value is generated via a command, it would fail for some commands. Example:
    %declare cmd `/usr/local/bin/perl -e 'print "studenttab10k"'`
    This command fails because currently the command is executed via call to Runtime.exec(cmd). In this case, default tokenizer is used to split the command and it does not respect the quotes.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Apr 23, 2008 at 11:28 pm
    [ https://issues.apache.org/jira/browse/PIG-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-218:
    -------------------------------

    Status: Patch Available (was: Open)
    parameter substitution broken with some commands
    ------------------------------------------------

    Key: PIG-218
    URL: https://issues.apache.org/jira/browse/PIG-218
    Project: Pig
    Issue Type: Bug
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Attachments: PIG-218.patch


    If parameter value is generated via a command, it would fail for some commands. Example:
    %declare cmd `/usr/local/bin/perl -e 'print "studenttab10k"'`
    This command fails because currently the command is executed via call to Runtime.exec(cmd). In this case, default tokenizer is used to split the command and it does not respect the quotes.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Alan Gates (JIRA) at Apr 24, 2008 at 12:18 pm
    [ https://issues.apache.org/jira/browse/PIG-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592007#action_12592007 ]

    Alan Gates commented on PIG-218:
    --------------------------------

    Will this change handle commands that have a unix pipe in them? If so, can we add a test for that?
    parameter substitution broken with some commands
    ------------------------------------------------

    Key: PIG-218
    URL: https://issues.apache.org/jira/browse/PIG-218
    Project: Pig
    Issue Type: Bug
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Attachments: PIG-218.patch


    If parameter value is generated via a command, it would fail for some commands. Example:
    %declare cmd `/usr/local/bin/perl -e 'print "studenttab10k"'`
    This command fails because currently the command is executed via call to Runtime.exec(cmd). In this case, default tokenizer is used to split the command and it does not respect the quotes.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Apr 24, 2008 at 3:06 pm
    [ https://issues.apache.org/jira/browse/PIG-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-218:
    -------------------------------

    Attachment: PIG-218_v2.patch

    The new patch has a modified test that includes pipe
    parameter substitution broken with some commands
    ------------------------------------------------

    Key: PIG-218
    URL: https://issues.apache.org/jira/browse/PIG-218
    Project: Pig
    Issue Type: Bug
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Attachments: PIG-218.patch, PIG-218_v2.patch


    If parameter value is generated via a command, it would fail for some commands. Example:
    %declare cmd `/usr/local/bin/perl -e 'print "studenttab10k"'`
    This command fails because currently the command is executed via call to Runtime.exec(cmd). In this case, default tokenizer is used to split the command and it does not respect the quotes.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Alan Gates (JIRA) at Apr 24, 2008 at 4:08 pm
    [ https://issues.apache.org/jira/browse/PIG-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592115#action_12592115 ]

    Alan Gates commented on PIG-218:
    --------------------------------

    New tests look good.
    parameter substitution broken with some commands
    ------------------------------------------------

    Key: PIG-218
    URL: https://issues.apache.org/jira/browse/PIG-218
    Project: Pig
    Issue Type: Bug
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Attachments: PIG-218.patch, PIG-218_v2.patch


    If parameter value is generated via a command, it would fail for some commands. Example:
    %declare cmd `/usr/local/bin/perl -e 'print "studenttab10k"'`
    This command fails because currently the command is executed via call to Runtime.exec(cmd). In this case, default tokenizer is used to split the command and it does not respect the quotes.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Apr 24, 2008 at 4:34 pm
    [ https://issues.apache.org/jira/browse/PIG-218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich updated PIG-218:
    -------------------------------

    Resolution: Fixed
    Status: Resolved (was: Patch Available)

    patch committed
    parameter substitution broken with some commands
    ------------------------------------------------

    Key: PIG-218
    URL: https://issues.apache.org/jira/browse/PIG-218
    Project: Pig
    Issue Type: Bug
    Reporter: Olga Natkovich
    Assignee: Olga Natkovich
    Attachments: PIG-218.patch, PIG-218_v2.patch


    If parameter value is generated via a command, it would fail for some commands. Example:
    %declare cmd `/usr/local/bin/perl -e 'print "studenttab10k"'`
    This command fails because currently the command is executed via call to Runtime.exec(cmd). In this case, default tokenizer is used to split the command and it does not respect the quotes.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedApr 23, '08 at 11:06p
activeApr 24, '08 at 4:34p
posts7
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 7 posts

People

Translate

site design / logo © 2023 Grokbase