You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2008/04/24 01:03:21 UTC
[jira] Created: (PIG-218) parameter substitution broken with some
commands
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.
[jira] Updated: (PIG-218) parameter substitution broken with some
commands
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (PIG-218) parameter substitution broken with some
commands
Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (PIG-218) parameter substitution broken with some
commands
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (PIG-218) parameter substitution broken with some
commands
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (PIG-218) parameter substitution broken with some
commands
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (PIG-218) parameter substitution broken with some
commands
Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
[ 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.