pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Coveney (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIG-3133) Revamp algebraic interface to actually return classes
Date Wed, 23 Jan 2013 00:50:13 GMT
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

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

View raw message