Hi Kimmo,

This is a bug of pig.

Here's the JIRA item http://issues.apache.org/jira/browse/PIG-1016


Jeff Zhang


2009/11/19 Kimmo Björnsson <[email protected]>

> Hi all.
>
> I'm trying to use a map with a tuple as the value. From the
> documentation it looks like it would be possible. But I just can't get
> it to work.
>
> Look at this small example. When it tries to parse the value of the
> map-entry it won't accept a tuple. Do I need to implement an own
> loader??
>
> grunt> cat mapwithtuple;
> [words#(word1,word2),title#anicetitle]
> grunt> x = load 'mapwithtuple' as (m:map[]);
> grunt> dump x;
> 2009-11-19 15:21:04,562 [main] WARN
>
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigHadoopLogger
> - org.apache.pig.builtin.PigStorage: Unable to interpret value
> [...@420f9c40 in field being converted to type map, caught
> ParseException <Encountered " "(" "( "" at line 1, column 8.
> Was expecting one of:
>    <SIGNEDINTEGER> ...
>    <LONGINTEGER> ...
>    <DOUBLENUMBER> ...
>    <FLOATNUMBER> ...
>    <STRING> ...
>    > field discarded
> 2009-11-19 15:21:04,563 [main] INFO
> org.apache.pig.backend.local.executionengine.LocalPigLauncher -
> Successfully stored result in: "file:/tmp/temp1153167469/tmp608425705"
> 2009-11-19 15:21:04,563 [main] INFO
> org.apache.pig.backend.local.executionengine.LocalPigLauncher -
> Records written : 1
> 2009-11-19 15:21:04,563 [main] INFO
> org.apache.pig.backend.local.executionengine.LocalPigLauncher - Bytes
> written : 0
> 2009-11-19 15:21:04,563 [main] INFO
> org.apache.pig.backend.local.executionengine.LocalPigLauncher - 100%
> complete!
> 2009-11-19 15:21:04,563 [main] INFO
> org.apache.pig.backend.local.executionengine.LocalPigLauncher -
> Success!!
> ()
> grunt>
>
> / Kimmo
>

Reply via email to