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
             Fix For: 0.10


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to