Abhinav-Agarwal021 commented on issue #13685: URL: https://github.com/apache/gluten/issues/13685#issuecomment-7213948124
Thanks @felipepessoto. Yes, I think one JNI path is better for both PRs, and extending the hook to carry the Spark condition would cover #13697. The Velox provider would map a `VeloxException` whose error code is `SPARK:<condition>` (set by facebookincubator/velox#20514) to the condition. The Java side would then build the Spark exception from it, starting with `DIVIDE_BY_ZERO`. Two suggestions: 1. Add the condition as its own field, empty when there is none, instead of encoding it in the reason. Cast errors could then report conditions such as `CAST_INVALID_INPUT` later without parsing the reason. 2. Use a single Velox provider that fills in both the cast metadata and the condition. Then an error that matches both doesn't depend on which provider was registered first. If that works for you, I'll rebase #13697 on #13822 once it lands and remove its separate error-code getter. -- 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]
