You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Nezih Yigitbasi (JIRA)" <ji...@apache.org> on 2013/11/27 21:35:36 UTC

[jira] [Commented] (PIG-3566) Cannot set useMatches of REGEX_EXTRACT_ALL and REGEX_EXTRACT

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

Nezih Yigitbasi commented on PIG-3566:
--------------------------------------

Cheolsoo, I have also updated the TestBuiltin class and made sure that unit tests succeed. Please review, thanks.

> Cannot set useMatches of REGEX_EXTRACT_ALL and REGEX_EXTRACT
> ------------------------------------------------------------
>
>                 Key: PIG-3566
>                 URL: https://issues.apache.org/jira/browse/PIG-3566
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>            Reporter: Nezih Yigitbasi
>            Assignee: Nezih Yigitbasi
>         Attachments: PIG-3566.1.patch, PIG-3566.patch
>
>
> In the javadoc of REGEX_EXTRACT_ALL and REGEX_EXTRACT it says we can set the 'useMatches' property of these UDFs with DEFINE statements:
> DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL(false);
> DEFINE NON_GREEDY_EXTRACT REGEX_EXTRACT(false);
> However, both of these do not work (2013-11-07 15:35:15,107 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 7, column 40>  mismatched input 'false' expecting RIGHT_PAREN)
> These UDFs should take string arguments to their constructors.



--
This message was sent by Atlassian JIRA
(v6.1#6144)