You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Anthony Hsu (JIRA)" <ji...@apache.org> on 2015/02/26 21:41:05 UTC

[jira] [Commented] (PIG-4432) Built-in VALUELIST and VALUESET UDFs do not preserve the schema when the map value type is a complex type

    [ https://issues.apache.org/jira/browse/PIG-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339124#comment-14339124 ] 

Anthony Hsu commented on PIG-4432:
----------------------------------

Uploaded a new patch that contains the fix for both VALUELIST and VALUESET: [^PIG-4432.2.patch]

> Built-in VALUELIST and VALUESET UDFs do not preserve the schema when the map value type is a complex type
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-4432
>                 URL: https://issues.apache.org/jira/browse/PIG-4432
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.11.1
>            Reporter: Anthony Hsu
>            Assignee: Anthony Hsu
>             Fix For: 0.15.0
>
>         Attachments: PIG-4432.2.patch, pig-4432.patch
>
>
> To reproduce:
> {code:title=testValueList.txt}
> ['a'#('foo')]
> ['b'#('bar')]
> {code}
> {code:title=testValueList.pig}
> a = load 'testValueList.txt' as (map[(chararray)]);
> b = foreach a generate VALUELIST($0); -- or use VALUESET (same problem)
> describe b;
> {code}
> Run the Pig script:
> {code}
> pig testValueList.pig
> {code}
> Expected:
> {code}
> b: {{(val_0: chararray)}}
> {code}
> Actual:
> {code}
> b: {{()}}
> {code}



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