felipepessoto commented on issue #13685: URL: https://github.com/apache/gluten/issues/13685#issuecomment-7017313689
#13561 and #13563 preserve existing Java exceptions through native callbacks; they don’t classify native errors. #13135 is the direct overlap: it already translates selected native cast failures through a typed carrier and Spark factories, but still recognizes the native reason to determine the error. Explicit native condition/parameter metadata would improve that and extend it beyond casts. I’d prefer exploring typed metadata using the existing bridge, while also covering functions that return Status before an exception is created. We should keep version-specific conditions and exception subclasses in the JVM mapping, let Velox provide the error information, and use Spark’s own factories on the Java/Scala side to produce the correct error identifier and exception type for each supported Spark version. If we choose the reason-marker approach, we need to coordinate cast migration: changing the native reason first would stop #13135’s existing mapper from recognizing it. We should also verify top-level SparkThrowable propagation across nested boundaries, not only preservation in the cause chain. None of this needs to block the Java-preservation PRs. -- 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]
