Nezih Yigitbasi created PIG-3566:
------------------------------------

             Summary: 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


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.



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

Reply via email to