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

Gabriel Reid commented on CRUNCH-155:
-------------------------------------

+1

My biggest worry was that this might change the semantics of a plain 
materialize call for the case where it's kind of being abused to force a 
certain planning graph layout, but as far as I can tell that isn't an issue 
with this patch.
                
> 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
>            Assignee: Josh Wills
>            Priority: Critical
>         Attachments: ConcatGroupFn.java, CRUNCH-155.patch, 
> 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

Reply via email to