Skip to content

Commit

Permalink
fix: Fix chunk filling loop bug that broke rollup snapshots with view…
Browse files Browse the repository at this point in the history
…ports bigger than 512 rows (#6205)
  • Loading branch information
rcaudy authored Oct 16, 2024
1 parent b4fb03b commit b4ebd67
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1473,10 +1473,12 @@ private void fillNormalDestinations(@NotNull final RowSequence rows) {

try (final RowSequence.Iterator rowsIter =
rows.size() >= chunkSize ? rows.getRowSequenceIterator() : null) {
final RowSequence chunkRows =
rowsIter == null ? rows : rowsIter.getNextRowSequenceWithLength(chunkSize);
final int chunkRowsSize = chunkRows.intSize();
do {
final RowSequence chunkRows = rowsIter == null
? rows
: rowsIter.getNextRowSequenceWithLength(chunkSize);
final int chunkRowsSize = chunkRows.intSize();
Assert.leq(chunkRowsSize, "chunkRowsSize", capacity, "capacity");
for (int di = 0, ci = columns.nextSetBit(0); ci >= 0; ++di, ci = columns.nextSetBit(ci + 1)) {
if (ci == ROW_EXPANDED_COLUMN_INDEX) {
continue;
Expand Down

0 comments on commit b4ebd67

Please sign in to comment.