tuplejump / calliope

Calliope is a library integrating Cassandra and Spark framework.
http://tuplejump.github.io/calliope/
Apache License 2.0
28 stars 5 forks source link

CQL Java Driver exception when serializing BigDecimals to ByteBuffers #29

Closed brenttheisen closed 10 years ago

brenttheisen commented 10 years ago

Inverse of issue in #27...

org.apache.spark.SparkException: Job aborted due to stage failure: Task 1.0:11 failed 4 times, most recent failure: Exception failure in TID 1614 on host cassandra2.internal.womply.com: com.datastax.driver.core.exceptions.InvalidTypeException: Invalid value for CQL type decimal, expecting class java.math.BigDecimal but class scala.math.BigDecimal provided
        com.datastax.driver.core.DataType.serialize(DataType.java:508)
        com.tuplejump.calliope.utils.RichByteBuffer$.BigDecimal2ByteBuffer(RichByteBuffer.scala:119)