zhztheplayer commented on code in PR #13561:
URL: https://github.com/apache/gluten/pull/13561#discussion_r4648227764


##########
cpp/velox/operators/plannodes/RowVectorStream.cc:
##########
@@ -70,7 +71,7 @@ bool RowVectorStream::hasNext() {
         "ExternalStreamDataSource::next() is not called "
         "from a driver thread");
     SuspendedSection ss(driverThreadCtx->driverCtx()->driver);
-    hasNext = iterator_->hasNext();
+    hasNext = wrapJavaException([&]() { return iterator_->hasNext(); });

Review Comment:
   It doesn't seem right to assume iterator_ is a Java iterator here. It's 
viewed as a general iterator from RowVectorStream. 
https://github.com/felipepessoto/gluten/blob/2bf1181f1177b683733ff7d22fd60dfbad7900fd/cpp/velox/operators/plannodes/RowVectorStream.h#L54
   
   
   Can you check whether we can call wrapJavaException from the JNI iterator 
outright.



-- 
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]

Reply via email to