zhztheplayer commented on code in PR #13561:
URL: https://github.com/apache/gluten/pull/13561#discussion_r4668263232
##########
cpp/core/jni/JniWrapper.cc:
##########
@@ -458,7 +458,7 @@ JNIEXPORT jboolean JNICALL
Java_org_apache_gluten_vectorized_ColumnarBatchOutIte
"When hasNext() is called on a closed iterator, an exception is
thrown. To prevent this, consider using the protectInvocationFlow() method when
creating the iterator in scala side. This will allow the hasNext() method to be
called multiple times without issue.";
throw GlutenException(errorMessage);
}
- return iter->hasNext();
+ return readJniOutputIterator(*iter, &ResultIterator::hasNext);
Review Comment:
Do we have a chance to unify the try / catch pattern in JNI_METHOD_START and
JNI_METHOD_END?
--
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]