JkSelf opened a new pull request, #5545: URL: https://github.com/apache/incubator-gluten/pull/5545
## What changes were proposed in this pull request? Currently, the iterator is designed to close once the hasNext() method returns false. Therefore, if `hasNext()` is called a second time, it will throw exception [here](https://github.com/apache/incubator-gluten/blob/8ade7a9cb50910021a2c0cb6977aaaeb9a17b5ce/cpp/core/jni/JniWrapper.cc#L452). This PR adds a `protectInvocationFlow()` method to ensure that the iterator's `hasNext()` can be safely called multiple times without causing an exception. ## How was this patch tested? locally test. -- 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]
