dkling-it opened a new pull request, #58219:
URL: https://github.com/apache/spark/pull/58219

   ### What changes were proposed in this pull request?
   Renames `_LEGACY_ERROR_TEMP_2033` to `UNABLE_TO_CREATE_DATABASE`. It's 
raised by 
`QueryExecutionErrors.unableToCreateDatabaseAsFailedToCreateDirectoryError` 
when `InMemoryCatalog.createDatabase` can't create the database's backing 
directory. SQLSTATE `58030` follows the same convention as other filesystem I/O 
failures such as `FAILED_CREATE_CHECKPOINT_DIRECTORY` and 
`UNABLE_TO_FETCH_HIVE_TABLES`. Message text and parameters are unchanged.
   
   ### Why are the changes needed?
   Part of the SPARK-37935 effort to replace `_LEGACY_ERROR_TEMP_*` 
placeholders with proper error conditions.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes. The error condition name changes from `_LEGACY_ERROR_TEMP_2033` to 
`UNABLE_TO_CREATE_DATABASE` and now carries SQLSTATE `58030`. The rendered 
message is unchanged.
   
   ### How was this patch tested?
   Added a `checkError` test in `InMemoryCatalogSuite` that points 
`createDatabase` at a location nested under an existing regular file, so 
directory creation fails and the new condition fires. Ran 
`InMemoryCatalogSuite` and `SparkThrowableSuite` locally; both pass.
   
   ### 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