hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1190) Handling of quoted strings in pig-latin/grunt commands
Date Tue, 02 Feb 2010 00:10:18 GMT

     [ https://issues.apache.org/jira/browse/PIG-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ashutosh Chauhan updated PIG-1190:

    Attachment: pig-1190.patch

this patch fixes the issue of quotes with register and set commands. Consider following two

set job.priority 'high'
set job.priority high

In both the case job priority will now get set to high. 
Similarly for register command.

> Handling of quoted strings in pig-latin/grunt commands
> ------------------------------------------------------
>                 Key: PIG-1190
>                 URL: https://issues.apache.org/jira/browse/PIG-1190
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Thejas M Nair
>            Assignee: Ashutosh Chauhan
>             Fix For: 0.7.0
>         Attachments: pig-1190.patch
> There is some inconsistency in the way quoted strings are used/handled in pig-latin .
> In load/store and define-ship commands, files are specified in quoted strings , and the
file name is the content within the quotes.  But in case of register, set, and file system
commands , if string is specified in quotes, the quotes are also included as part of the string.
This is not only inconsistent , it is also unintuitive. 
> This is also inconsistent with the way hdfs commandline (or bash shell) interpret file
> For example, currently with the command - 
> set job.name 'job123'
> The job name set set to 'job123' (including the quotes) not job123 .
> This needs to be fixed, and above command should be considered equivalent to - set job.name

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

View raw message