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 | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

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