Skip to content

refactor: split oversized blocks in BlockPartitionStream and add unit tests #19627

Open
dqhl76 wants to merge 4 commits intodatabendlabs:mainfrom
dqhl76:fix-final-aggregate-2
Open

refactor: split oversized blocks in BlockPartitionStream and add unit tests #19627
dqhl76 wants to merge 4 commits intodatabendlabs:mainfrom
dqhl76:fix-final-aggregate-2

Conversation

@dqhl76
Copy link
Copy Markdown
Collaborator

@dqhl76 dqhl76 commented Mar 27, 2026

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

part of #19622

Prevent BlockPartitionStream from emitting blocks larger than rows_threshold
by splitting them after build. Also adds comprehensive unit tests covering
partition, finalize_partition, and take_partitions split behavior.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Mar 27, 2026
Prevent BlockPartitionStream from emitting blocks larger than rows_threshold
by splitting them after build. Also adds comprehensive unit tests covering
partition, finalize_partition, and take_partitions split behavior.
@dqhl76 dqhl76 force-pushed the fix-final-aggregate-2 branch from 4ffe891 to 62c91dd Compare March 27, 2026 05:55
@dqhl76 dqhl76 marked this pull request as ready for review March 27, 2026 09:34
@dqhl76 dqhl76 requested a review from zhang2014 March 27, 2026 09:34
@dqhl76 dqhl76 marked this pull request as draft March 31, 2026 03:56
@dqhl76 dqhl76 marked this pull request as ready for review March 31, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-refactor this PR changes the code base without new features or bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant