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

   ### What changes were proposed in this pull request?
   
   Rename the legacy error condition `_LEGACY_ERROR_TEMP_1072` to 
`TABLES_OR_VIEWS_NOT_IN_SAME_DATABASE` (SQLSTATE `0A000`). It is raised by 
`SessionCatalog.getTablesByName` when the requested tables/views span more than 
one database. The message is also reworded for clarity.
   
   ### 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 `TABLES_OR_VIEWS_NOT_IN_SAME_DATABASE`, and the 
message is reworded to "Cannot retrieve tables or views that do not belong to 
the same database. Requested: <qualifiedTableNames>."
   
   ### How was this patch tested?
   
   Strengthened the existing `SessionCatalogSuite` test to assert the condition 
and parameters via `checkError` (it previously only intercepted the exception). 
`SparkThrowableSuite` passes.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Co-authored with Claude Opus 4.8


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