com.mongodb.spark.exceptions.MongoTypeConversionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • sparkR-Mongo connector query to subdocument
    via Stack Overflow by Youe
    ,
    • com.mongodb.spark.exceptions.MongoTypeConversionException: Cannot cast INT32 into a ConflictType (value: BsonInt32{value=171609012}) at com.mongodb.spark.sql.MapFunctions$.com$mongodb$spark$sql$MapFunctions$$convertToDataType(MapFunctions.scala:79) at com.mongodb.spark.sql.MapFunctions$$anonfun$3.apply(MapFunctions.scala:38) at com.mongodb.spark.sql.MapFunctions$$anonfun$3.apply(MapFunctions.scala:36) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108) at com.mongodb.spark.sql.MapFunctions$.documentToRow(MapFunctions.scala:36) at com.mongodb.spark.sql.MapFunctions$.castToStructType(MapFunctions.scala:108) at com.mongodb.spark.sql.MapFunctions$.com$mongodb$spark$sql$MapFunctions$$convertToDataType(MapFunctions.scala:74)
    No Bugmate found.