MaxGekk commented on code in PR #46731:
URL: https://github.com/apache/spark/pull/46731#discussion_r1714870956
##########
sql/core/src/test/resources/sql-tests/analyzer-results/change-column.sql.out:
##########
@@ -167,19 +167,12 @@ ALTER TABLE test_change CHANGE invalid_col TYPE INT
-- !query analysis
org.apache.spark.sql.AnalysisException
{
- "errorClass" : "_LEGACY_ERROR_TEMP_1331",
+ "errorClass" : "UNRESOLVED_COLUMN.WITH_SUGGESTION",
+ "sqlState" : "42703",
"messageParameters" : {
- "fieldName" : "invalid_col",
- "schema" : "root\n |-- a: integer (nullable = true)\n |-- b: string
(nullable = true)\n |-- c: integer (nullable = true)\n",
- "table" : "spark_catalog.default.test_change"
- },
- "queryContext" : [ {
Review Comment:
Please, pass `origin` and set it in `AnalysisException`
--
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]