yihua commented on code in PR #12587:
URL: https://github.com/apache/hudi/pull/12587#discussion_r1914146529
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/dml/TestUpdateTable.scala:
##########
@@ -401,13 +401,13 @@ class TestUpdateTable extends HoodieSparkSqlTestBase {
val e1 = intercept[AnalysisException] {
spark.sql(s"update $tableName set id = 2 where id = 1")
}
- assert(e1.getMessage.contains("Detected update query with disallowed
assignment clause for primaryKey field `id`"))
+ assert(e1.getMessage.contains("Detected disallowed assignment clause
in UPDATE statement for record key field `id`"))
// Try to update partition column (should fail)
val e2 = intercept[AnalysisException] {
spark.sql(s"update $tableName set pt = '2022' where id = 1")
}
- assert(e2.getMessage.contains("Detected update query with disallowed
assignment clause for partition field `pt`"))
+ assert(e2.getMessage.contains("Detected disallowed assignment clause
in UPDATE statement for partition field `pt`"))
Review Comment:
Add `. Please remove the assignment clause to avoid the error.`?
--
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]