This is an automated email from the ASF dual-hosted git repository.
JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 83ccce1ac1 [orc] Ensure batch size is at least 1 (#8386)
83ccce1ac1 is described below
commit 83ccce1ac17777b3a9b3a52654cfa57b60da1faf
Author: cxzl25 <[email protected]>
AuthorDate: Tue Jun 30 17:20:48 2026 +0800
[orc] Ensure batch size is at least 1 (#8386)
---
.../src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
b/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
index 63f07ad152..0d3684d77c 100644
---
a/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
+++
b/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
@@ -158,7 +158,8 @@ public class OrcReaderFactory implements
FormatReaderFactory {
final Pool<OrcReaderBatch> pool = new Pool<>(numBatches);
for (int i = 0; i < numBatches; i++) {
- final VectorizedRowBatch orcBatch = createBatchWrapper(schema,
batchSize / numBatches);
+ final VectorizedRowBatch orcBatch =
+ createBatchWrapper(schema, Math.max(1, batchSize /
numBatches));
final OrcReaderBatch batch =
createReaderBatch(filePath, orcBatch, pool.recycler(),
fileIO);
pool.add(batch);