scala.MatchError: TimestampType (of class org.apache.spark.sql.catalyst.types.TimestampType$) at org.apache.spark.sql.json.JsonRDD$.enforceCorrectType(JsonRDD.scala:348) at org.apache.spark.sql.json.JsonRDD$$anonfun$org$apache$spark$sql$json$JsonRDD$$asRow$1$$anonfun$apply$12.apply(JsonRDD.scala:381)

nabble.com | 7 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

    Apache Spark User List - spark sql: timestamp in json - fails

    nabble.com | 7 months ago
    scala.MatchError: TimestampType (of class org.apache.spark.sql.catalyst.types.TimestampType$) at org.apache.spark.sql.json.JsonRDD$.enforceCorrectType(JsonRDD.scala:348) at org.apache.spark.sql.json.JsonRDD$$anonfun$org$apache$spark$sql$json$JsonRDD$$asRow$1$$anonfun$apply$12.apply(JsonRDD.scala:381)

    Root Cause Analysis

    1. scala.MatchError

      TimestampType (of class org.apache.spark.sql.catalyst.types.TimestampType$) at org.apache.spark.sql.json.JsonRDD$.enforceCorrectType(JsonRDD.scala:348) at org.apache.spark.sql.json.JsonRDD$$anonfun$org$apache$spark$sql$json$JsonRDD$$asRow$1$$anonfun$apply$12.apply(JsonRDD.scala:381)

      at scala.Option.map()
    2. Scala
      Option.map
      1. scala.Option.map(Option.scala:145)
      1 frame