MaxGekk commented on code in PR #39515:
URL: https://github.com/apache/spark/pull/39515#discussion_r1097228911


##########
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala:
##########
@@ -679,6 +679,32 @@ class QueryCompilationErrorsSuite
       context = ExpectedContext("", "", 7, 13, "CAST(1)")
     )
   }
+
+  test("SPARK-38743 - Test the error class: MISSING_STATIC_PARTITION_COLUMN") {
+    val tableName: String = "static_part_table"
+    withTable(tableName) {
+      sql(
+        s"""
+           |CREATE TABLE $tableName (a STRING, b INT, c STRING)
+           |USING parquet
+           |PARTITIONED BY (c)
+           |""".stripMargin)
+
+      val df = Seq(("A", 123, "C")).toDF("a", "b", "c")
+      checkError(
+        exception = intercept[AnalysisException] {
+          df.write.mode("append").saveAsTable(s"$tableName")
+        },
+        errorClass = "_LEGACY_ERROR_TEMP_1163",

Review Comment:
   How does this match to `MISSING_STATIC_PARTITION_COLUMN`?



##########
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala:
##########
@@ -679,6 +679,32 @@ class QueryCompilationErrorsSuite
       context = ExpectedContext("", "", 7, 13, "CAST(1)")
     )
   }
+
+  test("SPARK-38743 - Test the error class: MISSING_STATIC_PARTITION_COLUMN") {

Review Comment:
   Does `MISSING_STATIC_PARTITION_COLUMN` exist?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to