Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-39374

Improve error message for user specified column list

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      scala> spark.sql("create table t1(id int, name string) using parquet")
      res0: org.apache.spark.sql.DataFrame = []
      
      scala> spark.sql("insert into t1(id, nn) values(1, 'name')")
      org.apache.spark.sql.AnalysisException: Cannot resolve column name nn; line 1 pos 0
        at org.apache.spark.sql.errors.QueryCompilationErrors$.cannotResolveUserSpecifiedColumnsError(QueryCompilationErrors.scala:406)
        at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveUserSpecifiedColumns$.$anonfun$resolveUserSpecifiedColumns$2(Analyzer.scala:3406)
        at scala.Option.getOrElse(Option.scala:189)
      

      Attachments

        Activity

          People

            yumwang Yuming Wang
            yumwang Yuming Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: