You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2014/10/03 05:17:34 UTC

[jira] [Resolved] (CRUNCH-473) Use specific class type for case class serialization

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

Josh Wills resolved CRUNCH-473.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 0.12.0

Pushed to master.

> Use specific class type for case class serialization
> ----------------------------------------------------
>
>                 Key: CRUNCH-473
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-473
>             Project: Crunch
>          Issue Type: Bug
>            Reporter: Josh Wills
>             Fix For: 0.12.0
>
>         Attachments: CRUNCH-473.patch
>
>
> Just ran into a bug involving serializing case classes that contain arrays of other case classes: in that situation, we deserialize the nested array as an Array[Product] instead of Array[SpecificCaseClass]. The fix is pretty easy, we just need to use the actual runtime class (i.e., Class[SpecificCaseClass]) as the basis of the PType, instead of Class[Product].



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