viirya commented on code in PR #92:
URL: 
https://github.com/apache/arrow-datafusion-comet/pull/92#discussion_r1499672962


##########
spark/src/main/scala/org/apache/spark/sql/comet/operators.scala:
##########
@@ -81,7 +81,11 @@ abstract class CometExec extends CometPlan {
 
       out.flush()
       out.close()
-      Iterator((count, cbbos.toChunkedByteBuffer))
+      if (out.size() > 0) {

Review Comment:
   Oh, I see. The compressed stream is wrapped in `out`. When it is flushed, it 
might write compression related bytes which are not counted in `out.size()`.



-- 
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...@arrow.apache.org

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

Reply via email to