java.lang.ClassCastException: org.apache.spark.sql.DataFrame cannot be cast to org.apache.spark.sql.Dataset

GitHub | anayyar82 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception in thread "main" java.lang.ClassCastException: org.apache.spark.sql.DataFrame cannot be cast to org.apache.spark.sql.Dataset

    GitHub | 9 months ago | anayyar82
    java.lang.ClassCastException: org.apache.spark.sql.DataFrame cannot be cast to org.apache.spark.sql.Dataset

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.spark.sql.DataFrame cannot be cast to org.apache.spark.sql.Dataset

      at com.sabre.sparkavro.SparkAvroReader$delayedInit$body.apply()
    2. com.sabre.sparkavro
      SparkAvroReader$delayedInit$body.apply
      1. com.sabre.sparkavro.SparkAvroReader$delayedInit$body.apply(SparkAvroReader.scala:25)
      1 frame
    3. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:40)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:71)
      4. scala.App$$anonfun$main$1.apply(App.scala:71)
      5. scala.collection.immutable.List.foreach(List.scala:318)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
      7. scala.App$class.main(App.scala:71)
      7 frames