pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PIG-1941) Dumping a scalar launches ClassCastException
Date Tue, 29 Mar 2011 17:51:06 GMT

     [ https://issues.apache.org/jira/browse/PIG-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Dai resolved PIG-1941.
-----------------------------

    Resolution: Invalid

> Dumping a scalar launches ClassCastException
> --------------------------------------------
>
>                 Key: PIG-1941
>                 URL: https://issues.apache.org/jira/browse/PIG-1941
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Gianmarco De Francisci Morales
>             Fix For: 0.9.0
>
>
> The following script fails launching a class cast exception:
> java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.pig.data.DataBag
> {code}
> a = LOAD 'a.txt' as (line:chararray);
> b = GROUP a ALL;
> c = FOREACH b GENERATE COUNT(*) AS sum;
> DUMP c;
> {code}
> However, this other script works correctly:
> {code}
> a = LOAD 'a.txt' as (line:chararray);
> b = GROUP a ALL;
> c = FOREACH b GENERATE COUNT(*) AS sum;
> d = ORDER a BY $0;
> DUMP d;
> {code}
> So I assume there is something strange in the DUMP operator.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message