miland-db opened a new pull request, #54595:
URL: https://github.com/apache/spark/pull/54595

   ### What changes were proposed in this pull request?
   This PR adds a proper error class and SQL state for the 
`cannotFindCatalogToHandleIdentifierError` exception.
   
   Changes:
   - Added `CATALOG_NOT_FOUND_FOR_IDENTIFIER` error class to 
`error-conditions.json` with SQL state `42000`
   - Updated 
`QueryCompilationErrors.cannotFindCatalogToHandleIdentifierError()` to use the 
new error class
   - Removed `_LEGACY_ERROR_TEMP_1310` legacy error class
   
   
   ### Why are the changes needed?
   Previously, this error used `_LEGACY_ERROR_TEMP_1310` without a SQL state, 
making it harder
   to identify.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   New tests in `DataFrameWriterSuite.scala`.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.
   


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