wayneguow commented on code in PR #46731:
URL: https://github.com/apache/spark/pull/46731#discussion_r1713698382
##########
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:
Currently, none of the methods related to `UNRESOLVED_COLUMN` support the
context parameter. Do I need to overload a new method?
https://github.com/apache/spark/blob/e3ba74b65b9d534655fbcf40bb2c00b7f5c69418/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala#L383
https://github.com/apache/spark/blob/e3ba74b65b9d534655fbcf40bb2c00b7f5c69418/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala#L3374
--
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]