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/08 01:09:17 UTC

[jira] [Updated] (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:all-tabpanel ]

Nezih Yigitbasi updated PIG-3566:
---------------------------------

    Description: 
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.

  was:
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)

Probably because the UDFs can only accept string arguments to their constructors. These UDFs should take string arguments to their constructors.


> 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
>         Attachments: 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)