scala.MatchError: StringType (of class org.apache.spark.sql.types.StringType$)

incubator-spark-user | Bonsen | 1 year 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

    sql:Exception in thread "main" scala.MatchError: StringType

    spark-user | 1 year ago | Bonsen
    scala.MatchError: StringType (of class org.apache.spark.sql.types.StringType$)
  2. 0

    sql:Exception in thread "main" scala.MatchError: StringType

    incubator-spark-user | 1 year ago | Bonsen
    scala.MatchError: StringType (of class org.apache.spark.sql.types.StringType$)

    1 unregistered visitors

    Root Cause Analysis

    1. scala.MatchError

      StringType (of class org.apache.spark.sql.types.StringType$)

      at org.apache.spark.sql.json.InferSchema$.apply()
    2. Spark Project SQL
      JSONRelation$$anonfun$schema$1.apply
      1. org.apache.spark.sql.json.InferSchema$.apply(InferSchema.scala:58)
      2. org.apache.spark.sql.json.JSONRelation$$anonfun$schema$1.apply(JSONRelation.scala:139)
      2 frames