Ma77Ball opened a new pull request, #58750:
URL: https://github.com/apache/spark/pull/58750

   ### What changes were proposed in this pull request?
   
   Rename the legacy error condition `_LEGACY_ERROR_TEMP_1060` to the named 
subclass `UNSUPPORTED_FEATURE.NESTED_COLUMN` (SQLSTATE `0A000`). It is raised 
when a command such as `DESC TABLE COLUMN` or JDBC filter push down is given a 
nested column it cannot operate on.
   
   ### Why are the changes needed?
   
   The error-conditions README disallows new `_LEGACY_ERROR_TEMP_*` entries and 
asks existing ones to be resolved. This resolves one (part of SPARK-37935).
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. The condition becomes `UNSUPPORTED_FEATURE.NESTED_COLUMN`, and the 
rendered message gains the standard `The feature is not supported:` prefix and 
quotes the column with backticks, e.g. ``The feature is not supported: DESC 
TABLE COLUMN does not support nested column `col.x`.``
   
   ### How was this patch tested?
   
   Updated the existing `checkError` test in `DataSourceV2SQLSuite` and 
converted the message assertion in `DescribeTableSuiteBase` to `checkError`. 
`SparkThrowableSuite` passes.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Co-authored with Claude Opus 4.8
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01Szg8u1RoZ9W6cYBjt7pdFw
   


-- 
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