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

GitHub | anayyar82 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    GitHub | 8 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