michaelmitchell-bit opened a new pull request, #56994:
URL: https://github.com/apache/spark/pull/56994

   ### What changes were proposed in this pull request?
   
   This backports apache/spark#56905 to branch-4.x.
   
   It 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 branch-4.x backport required resolving an `error-conditions.json` 
conflict by preserving branch-4.x's existing `UNSUPPORTED_HIVE_TYPE` entry and 
inserting `UNSUPPORTED_HIVE_FUNCTION_TYPE` before it.
   
   ### Why are the changes needed?
   
   To keep branch-4.x aligned with master for the named error condition 
migration from apache/spark#56905.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. The affected Hive UDF/UDAF/UDTF Java type errors now report named error 
conditions and SQLSTATEs on branch-4.x, matching master.
   
   ### How was this patch tested?
   
   ```
   ./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"
   jq empty common/utils/src/main/resources/error/error-conditions.json
   git diff --check origin/branch-4.x...HEAD
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex (GPT-5)
   


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