michaelmitchell-bit opened a new pull request, #56905: URL: https://github.com/apache/spark/pull/56905
### What changes were proposed in this pull request? This PR assigns named error conditions and SQLSTATEs for three Hive UDF/UDAF/UDTF Java type legacy error classes: - `_LEGACY_ERROR_TEMP_3090` -> `UNSUPPORTED_HIVE_FUNCTION_TYPE.RAW_LIST` - `_LEGACY_ERROR_TEMP_3091` -> `UNSUPPORTED_HIVE_FUNCTION_TYPE.RAW_MAP` - `_LEGACY_ERROR_TEMP_3092` -> `UNSUPPORTED_HIVE_FUNCTION_TYPE.WILDCARD` The three conditions share the `UNSUPPORTED_HIVE_FUNCTION_TYPE` parent with SQLSTATE `0A000` because all three cases reject unsupported Hive function Java type signatures while Spark infers Catalyst types. ### Why are the changes needed? To replace temporary legacy error classes with stable named error conditions and SQLSTATEs. ### Does this PR introduce _any_ user-facing change? Yes. The affected errors now report named error conditions and SQLSTATEs, and their messages are grouped under the new `UNSUPPORTED_HIVE_FUNCTION_TYPE` condition. ### How was this patch tested? Ran targeted tests: ``` ./build/sbt "core/testOnly org.apache.spark.SparkThrowableSuite" ./build/sbt "hive/testOnly org.apache.spark.sql.hive.execution.HiveUDFSuite -- -z \"UDFRaw\"" ./build/sbt "hive/testOnly org.apache.spark.sql.hive.execution.HiveUDFSuite -- -z \"UDFWildcardList\"" ``` Also ran: ``` jq empty common/utils/src/main/resources/error/error-conditions.json git diff --check ``` ### Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex -- 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]
