parthchandra commented on code in PR #1765:
URL: https://github.com/apache/datafusion-comet/pull/1765#discussion_r2103085875


##########
spark/src/main/scala/org/apache/comet/CometExecIterator.scala:
##########
@@ -133,23 +136,51 @@ class CometExecIterator(
     }
   }
 
-  def getNextBatch(): Option[ColumnarBatch] = {
+  private def getNextBatch: Option[ColumnarBatch] = {
     assert(partitionIndex >= 0 && partitionIndex < numParts)
 
     if (tracingEnabled) {
       traceMemoryUsage()
     }
 
     val ctx = TaskContext.get()
-    withTrace(
-      s"getNextBatch[JVM] stage=${ctx.stageId()}",
-      tracingEnabled, {
-        nativeUtil.getNextBatch(
-          numOutputCols,
-          (arrayAddrs, schemaAddrs) => {
-            nativeLib.executePlan(ctx.stageId(), partitionIndex, plan, 
arrayAddrs, schemaAddrs)
-          })
-      })
+
+    try {

Review Comment:
   Maybe log an issue to see if the error/exception translation can be 
improved? 



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to