acvictor opened a new pull request, #11943:
URL: https://github.com/apache/gluten/pull/11943

   ## What changes are proposed in this pull request?
   Java-side exceptions thrown during native callbacks (e.g., 
SparkRuntimeException) were serialized to strings and rethrown as 
GlutenException, losing the original exception type and error condition codes.
   
    This PR adds JniPendingException to carry the original jthrowable through 
C++ code, with a thread-local fallback for when Velox's internal handlers 
(Driver.cpp CALL_OPERATOR, Expr.cpp) re-wrap the C++ exception as 
VeloxRuntimeError. JNI_METHOD_END recovers the original throwable from either 
path and rethrows it via env->Throw(). Java-side translateException() is 
updated to preserve non-GlutenException RuntimeExceptions.
   
   ## How was this patch tested?
   
   <!--
   Describe how the changes were tested, if applicable.
   Include new tests to validate the functionality, if necessary.
   For UI-related changes, attach screenshots to demonstrate the updates.
   -->
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: GitHub Copilot 1.0.14


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