java.lang.ClassCastException

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.

  • Converting typed JavaRDD to Row JavaRDD
    via Stack Overflow by jigsaw
    ,
  • GitHub comment 107#227570980
    via GitHub by velvia
    ,
  • sbt test fails on second launch
    via GitHub by elppc
    ,
    • java.lang.ClassCastException: test.spark.SampleTest$A cannot be cast to java.lang.Long at scala.runtime.BoxesRunTime.unboxToLong(BoxesRunTime.java:110) at org.apache.spark.sql.catalyst.expressions.BaseGenericInternalRow$class.getLong(rows.scala:42) at org.apache.spark.sql.catalyst.expressions.GenericInternalRow.getLong(rows.scala:221) at org.apache.spark.sql.catalyst.CatalystTypeConverters$LongConverter$.toScalaImpl(CatalystTypeConverters.scala:367)

    Users with the same issue

    HandemelindoHandemelindo
    4 times, last one,
    tyson925tyson925
    6 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    rprp
    1 times, last one,
    bandocabandoca
    3 times, last one,
    4 more bugmates