[ https://issues.apache.org/jira/browse/PIG-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13525819#comment-13525819 ]
Julien Le Dem commented on PIG-2204: ------------------------------------ maybe just updating the doc to mention this? > Allow passing arguments to custom Partitioners > ---------------------------------------------- > > Key: PIG-2204 > URL: https://issues.apache.org/jira/browse/PIG-2204 > Project: Pig > Issue Type: Improvement > Reporter: Dmitriy V. Ryaboy > > Currently, this works: > {code} > y = group x by $0 partition by MyPartitioner PARALLEL 2; > {code} > However, passing an argument to the partitioner constructor does not work, > and dies with a misleading error: > {code} > y = group x by $0 partition by MyPartitioner(0) PARALLEL 2; > 2011-08-03 22:53:23,074 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1000: Error during parsing. Encountered " "(" "( "" at line 1, column 91. > Was expecting one of: > "parallel" ... > ";" ... > "." ... > "$" ... > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira