incubator-crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiyan Ahmadizadeh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CRUNCH-86) Conversions between Java and Scala maps are not active in Scrunch.
Date Thu, 04 Oct 2012 20:39:47 GMT

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

Kiyan Ahmadizadeh updated CRUNCH-86:
------------------------------------

    Attachment: CRUNCH-86.patch

This patch fixes the problem by adding the correct implicit def to the companion object for
PTypeH.

It also changes things up so that the Scala map used is the standard immutable Map that is
in scope for Scala programs by default.  
                
> Conversions between Java and Scala maps are not active in Scrunch.
> ------------------------------------------------------------------
>
>                 Key: CRUNCH-86
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-86
>             Project: Crunch
>          Issue Type: Bug
>          Components: Scrunch
>            Reporter: Kiyan Ahmadizadeh
>            Assignee: Kiyan Ahmadizadeh
>         Attachments: CRUNCH-86.patch
>
>
> The trait PTypeFamily in Scrunch provides derived PType(s) for Scala types.  Conversions.scala
contains a PTypeH companion object that provides implicit defs to get PTypeH (which in turn
provide a PType) for various types. Because this companion object does not contain an implicit
def for maps that takes advantage of the PType for maps provided in trait PTypeFamily, Java
maps are provided to functions operating on PCollections of Maps.  This should be changed
so that Scala maps are provided instead.

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