Could you share your pattern matching expression that is failing?

On Tue, Aug 18, 2015, 3:38 PM  <saif.a.ell...@wellsfargo.com> wrote:

> Hi all,
>
> I am trying to run a spark job, in which I receive *java.math.BigDecimal* 
> objects,
> instead of the scala equivalents, and I am trying to convert them into
> Doubles.
> If I try to match-case this object class, I get: *“**error: object
> java.math.BigDecimal is not a value**”*
>
> How could I get around matching java objects? I would like to avoid a
> multiple try-catch on ClassCastExceptions for all my checks.
>
> Thank you,
> Saif
>
>

Reply via email to