hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Reed (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-123) cannot escape single quotes in single quoted strings when using the eq or match operator
Date Tue, 26 Feb 2008 20:04:51 GMT

    [ https://issues.apache.org/jira/browse/PIG-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572635#action_12572635
] 

Benjamin Reed commented on PIG-123:
-----------------------------------

It would be nice to fix this properly and allow support for specifying unicode characters,
\uXXXX , and supporting standard escapes, \r \n \t. As you mention,  we have to introduce
a semantic change, so we should do it right.

BTW, make sure to test for '\\' and '\\\''.

> cannot escape single quotes in single quoted strings when using the eq or match operator
> ----------------------------------------------------------------------------------------
>
>                 Key: PIG-123
>                 URL: https://issues.apache.org/jira/browse/PIG-123
>             Project: Pig
>          Issue Type: Bug
>            Reporter: andrei badulescu
>
> a query like this :
> filter c by ( c.string eq 'hell\'s angels' OR c.string eq 'blue\'s clues')  
> generates an error with the pig parser, because the parser does not allow single quotes
(') within single quotes, even if they are escaped with a backslash. 

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


Mime
View raw message