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/10/23 14:43:41 UTC
[jira] [Commented] (PIG-3542) Javadoc of REGEX_EXTRACT_ALL
[ https://issues.apache.org/jira/browse/PIG-3542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802855#comment-13802855 ]
Nezih Yigitbasi commented on PIG-3542:
--------------------------------------
Btw, that define statement does not work:
grunt> DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL(false);
2013-10-23 05:38:28,441 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 3, column 40> mismatched input 'false' expecting RIGHT_PAREN
Details at logfile: /home/user/pig_1382531723261.log
> Javadoc of REGEX_EXTRACT_ALL
> ----------------------------
>
> Key: PIG-3542
> URL: https://issues.apache.org/jira/browse/PIG-3542
> Project: Pig
> Issue Type: Improvement
> Components: documentation
> Affects Versions: 0.12.0
> Reporter: Nezih Yigitbasi
> Priority: Minor
> Attachments: PIG-3542.patch
>
>
> The javadoc of the built in function REGEX_EXTRACT_ALL has a minor problem when describing the matching strategy to set the useMatches constructor argument. To set useMatches to false the javadoc says:
> DEFINE GREEDY_EXTRACT REGEX_EXTRACT(false);
> instead it should be:
> DEFINE GREEDY_EXTRACT REGEX_EXTRACT_ALL(false);
--
This message was sent by Atlassian JIRA
(v6.1#6144)