You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by ch...@apache.org on 2026/03/25 10:16:25 UTC

(gluten) branch main updated: [CH] Close ColumnarBatch in CHColumnarCollectLimitExec for skipped batches (#11818)

This is an automated email from the ASF dual-hosted git repository.

chengchengjin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 998ca2e47d [CH] Close ColumnarBatch in CHColumnarCollectLimitExec for skipped batches (#11818)
998ca2e47d is described below

commit 998ca2e47dcbd7fc06de69250a45935371dcdae6
Author: Ankita Victor <an...@microsoft.com>
AuthorDate: Wed Mar 25 15:46:12 2026 +0530

    [CH] Close ColumnarBatch in CHColumnarCollectLimitExec for skipped batches (#11818)
---
 .../scala/org/apache/gluten/execution/CHColumnarCollectLimitExec.scala   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backends-clickhouse/src/main/scala/org/apache/gluten/execution/CHColumnarCollectLimitExec.scala b/backends-clickhouse/src/main/scala/org/apache/gluten/execution/CHColumnarCollectLimitExec.scala
index 2450babe14..8ac0a6cd58 100644
--- a/backends-clickhouse/src/main/scala/org/apache/gluten/execution/CHColumnarCollectLimitExec.scala
+++ b/backends-clickhouse/src/main/scala/org/apache/gluten/execution/CHColumnarCollectLimitExec.scala
@@ -66,6 +66,7 @@ case class CHColumnarCollectLimitExec(limit: Int, offset: Int, child: SparkPlan)
 
           if (rowsToSkip >= batchSize) {
             rowsToSkip -= batchSize
+            batch.close()
           } else {
             val startIndex = rowsToSkip
             val leftoverAfterSkip = batchSize - startIndex


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org