miland-db opened a new pull request, #54592: URL: https://github.com/apache/spark/pull/54592
### What changes were proposed in this pull request? This PR adds a proper error class and SQL state for the `cannotSpecifyBothJdbcTableNameAndQueryError` exception. Changes: - Added `JDBC_TABLE_AND_QUERY_BOTH_SPECIFIED` error class to error-conditions.json with SQL state `42000` - Updated `QueryExecutionErrors.cannotSpecifyBothJdbcTableNameAndQueryError()` to use the new error class - Removed `_LEGACY_ERROR_TEMP_2078` legacy error class ### Why are the changes needed? Previously, this error used `_LEGACY_ERROR_TEMP_2078` without a SQL state, making it harder to identify and handle programmatically in error monitoring systems. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Updated tests in `JDBCSuite.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]
