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

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

    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