You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Remi Catherinot (JIRA)" <ji...@apache.org> on 2015/06/11 12:23:01 UTC

[jira] [Created] (PIG-4598) Allow user defined plan optimizer rules

Remi Catherinot created PIG-4598:
------------------------------------

             Summary: Allow user defined plan optimizer rules
                 Key: PIG-4598
                 URL: https://issues.apache.org/jira/browse/PIG-4598
             Project: Pig
          Issue Type: Improvement
          Components: impl
    Affects Versions: 0.15.0, 0.14.0
            Reporter: Remi Catherinot


Pig has only builtin plan optimizer rules. Adding the possibility to load used defined and implemented Rule make it easier for people to work on plan optimization. The idea behind this is to be able to push/propose new optimizer rule through the piggybank without touching pig core classes. I'm preparing some optimisations and so need this patch 1st.

One can set classes extending the abstract Rule class using pig.optimizer.user.defined.rules, setting this to one or more named classes splitted using regex [,;:\t ]. These classes will be loaded using PigContext.getClassLoader() and if that fails use the current thread context class loader. Classes can have a PigContext one argument constructor, and if it does not exists the default constructor is used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)