incubator-crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim van Heugten (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CRUNCH-155) Combining union and groupByKey causes ClassCastException in DoNode during planning
Date Tue, 29 Jan 2013 14:23:13 GMT

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

Tim van Heugten updated CRUNCH-155:
-----------------------------------

    Attachment: ConcatGroupFn.java
                words.txt
                FirstLetterKeyFn.java
                UnionGbkTest.java

Junit test attached that illustrates the issue.
                
> Combining union and groupByKey causes ClassCastException in DoNode during planning
> ----------------------------------------------------------------------------------
>
>                 Key: CRUNCH-155
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-155
>             Project: Crunch
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Tim van Heugten
>            Priority: Critical
>         Attachments: ConcatGroupFn.java, FirstLetterKeyFn.java, UnionGbkTest.java, words.txt
>
>
> Create two pCollections.
> Create an outputTarget for one of them.
> Create a table from the pCollections
> Union the tables
> Group the union.
> Process the grouped data into a PCollection.
> Materialize and run the pipeline.
> Causes: java.lang.ClassCastException: org.apache.crunch.types.writable.WritableType cannot
be cast to org.apache.crunch.types.PGroupedTableType
> Note: unioning first and creating a table later has the same CCE.

--
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

Mime
View raw message