-Re: Complex data types as value in a map function
Guy Bayes 2010-01-06, 03:00
thanks Thejas, that thread helped out immensely.
Also great to see Santhosh remembered that nasty PIG 880 bug with the type
inference causing an integer overflow, which coincidentally enough I also
got stung by at one time.
in the meantime, while I would love to have complex map datatypes, certainly
can be worked around using other methods
appreciate the prompt response
On Tue, Jan 5, 2010 at 10:38 AM, Thejas Nair <[EMAIL PROTECTED]> wrote:
> This is an issue in PigStorage is present in recent versions of pig. Ie
> cannot have complex types (bag, tuple, map) as a value in map type, if you
> are using PigStorage .
> See - https://issues.apache.org/jira/browse/PIG-1016
> On 1/5/10 10:28 AM, "Alan Gates" <[EMAIL PROTECTED]> wrote:
> > It should be supported. You may need to explicitly cast it to a tuple
> > so Pig knows to treat it as a tuple. Can you send the scripts that
> > are giving the error?
> > Alan.
> > On Jan 4, 2010, at 9:10 PM, Guy Bayes wrote:
> >> Is this supported?
> >> Say I have a map
> >> [f2#(1,6)]
> >> I cannot figure out how to de-reference the (1,6) tuple, I either
> >> get type
> >> conversion failure and () returned, or a 1066 error message "ERROR
> >> 1066:
> >> Unable to open iterator for alias"
> >> thanks
> >> Guy
you may be acquainted with the night
but i have seen the darkness in the day
and you must know it is a terrifying sight...