pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-2204) Allow passing arguments to custom Partitioners
Date Tue, 04 Oct 2011 22:34:34 GMT

     [ https://issues.apache.org/jira/browse/PIG-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olga Natkovich updated PIG-2204:
--------------------------------

    Fix Version/s:     (was: 0.10)
    
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message