Copilot commented on code in PR #13822:
URL: https://github.com/apache/gluten/pull/13822#discussion_r4746091726
##########
cpp/core/jni/JniError.h:
##########
@@ -53,6 +55,40 @@ class JniExceptionUnwrapperRegistration final {
ExceptionUnwrapper unwrap_;
};
+// What a backend knows about one of its native errors. JNI_METHOD_END raises
it as an
+// org.apache.gluten.exception.GlutenNativeException, and Java code uses these
fields to choose the
+// exception users see, for example a Spark exception for a failed cast.
Native code names no Java class.
Review Comment:
The PR description still documents a provider-selected Java class, a
`(byte[], byte[])` constructor, and a non-`Throwable` rejection test. This API
instead returns a SQL function name and always constructs
`GlutenNativeException` through its three-array constructor; the
non-`Throwable` test is also absent. Please update the proposed-changes and
testing sections to match this fixed-carrier design so reviewers and backend
implementers aren't relying on a different contract.
--
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]