[
https://issues.apache.org/jira/browse/PIG-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505105#comment-13505105
]
Aniket Mokashi commented on PIG-2204:
-------------------------------------
Wouldn't that work even today? Do we expect anything more?
> 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