spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Pfeiffer <>
Subject Re: scala.Double vs java.lang.Double in RDD
Date Thu, 05 Mar 2015 00:31:58 GMT

On Thu, Mar 5, 2015 at 12:20 AM, Imran Rashid <> wrote:

> This doesn't involve spark at all, I think this is entirely an issue with
> how scala deals w/ primitives and boxing.  Often it can hide the details
> for you, but IMO it just leads to far more confusing errors when things
> don't work out.  The issue here is that your map has value type Any, which
> leads scala to leave it as a boxed java.lang.Double.

I see, thank you very much for your explanation and the code examples!
Helps very much!


View raw message