diff --git a/common/utils/src/main/resources/error/error-conditions.json b/common/utils/src/main/resources/error/error-conditions.json index 8f82244e1987c..3baf9e6185fc7 100644 --- a/common/utils/src/main/resources/error/error-conditions.json +++ b/common/utils/src/main/resources/error/error-conditions.json @@ -7664,6 +7664,12 @@ }, "sqlState" : "0A000" }, + "UNSUPPORTED_TABLE_CHANGE" : { + "message" : [ + "Unsupported table change: " + ], + "sqlState" : "0A000" + }, "UNSUPPORTED_TABLE_CHANGES_IN_AUTO_SCHEMA_EVOLUTION" : { "message" : [ "Operation could not apply the following schema changes to table because the catalog did not support or only partially applied them: ." @@ -9015,11 +9021,6 @@ " is not implemented." ] }, - "_LEGACY_ERROR_TEMP_2045" : { - "message" : [ - "Unsupported table change: " - ] - }, "_LEGACY_ERROR_TEMP_2046" : { "message" : [ "[BUG] Not a DataSourceRDDPartition: ." diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala index 8985bdb519d19..717dc70922396 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala @@ -718,7 +718,7 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase with ExecutionE def unsupportedTableChangeError(e: IllegalArgumentException): Throwable = { new SparkException( - errorClass = "_LEGACY_ERROR_TEMP_2045", + errorClass = "UNSUPPORTED_TABLE_CHANGE", messageParameters = Map("message" -> e.getMessage), cause = e) }