Jonathan Coveney created PIG-3133:
-------------------------------------

             Summary: Revamp algebraic interface to actually return classes
                 Key: PIG-3133
                 URL: https://issues.apache.org/jira/browse/PIG-3133
             Project: Pig
          Issue Type: Improvement
            Reporter: Jonathan Coveney
             Fix For: 0.12


The current algebraic interface is a bit weird to work with. It would make a 
lot more sense to let people return Class<? extends EvalFunc<Tuple>> or what 
have you, or even a FuncSpec, but the current string based approach circumvents 
the whole point of using Java and is annoying. I think we should have an 
abstract EFInitial, EFIntermediate, EFFinal which implemented the exec function 
for the user, but in terms of a simpler, clearer interface. This way if people 
really want the old way they can, but we can present them something less ugly.

This would also be a good time to clarify the contracts of Algebraics and 
simplify them (the initial function's "a tuple which contains a bag which 
contains 1 tuple" is super whack).

If anyone wants to work on this let me know because this is the sort of thing I 
will probably bang out when procrastinating something else.

--
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

Reply via email to