Skip to content

Conversation

chenjian2664
Copy link
Contributor

Previously, rows were not handled in batch

Description

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Sep 27, 2025
@github-actions github-actions bot added the jdbc Relates to Trino JDBC driver label Sep 27, 2025
@wendigo wendigo requested a review from Copilot September 27, 2025 19:19
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a batch size condition in AsyncResultIterator that was preventing proper batching of rows. The change corrects the logic to ensure rows are processed in batches of the specified BATCH_SIZE.

  • Changed the batch size check from modulo operation to equality comparison
  • Fixed row batching behavior to properly reset after reaching BATCH_SIZE

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Previously, rows were not handled in batch
@chenjian2664 chenjian2664 force-pushed the simplfy_result_iterator branch from 9a29d59 to 8212c93 Compare September 29, 2025 11:39
@wendigo wendigo merged commit b3310ba into trinodb:master Sep 29, 2025
94 of 95 checks passed
@github-actions github-actions bot added this to the 478 milestone Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed jdbc Relates to Trino JDBC driver
Development

Successfully merging this pull request may close these issues.

2 participants