Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRILL-8511: Overflow appeared when the batch reached rows limit #2943

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected int prepareWrite() {
// Please be thoughtful when changing the code.

final int writeIndex = vectorIndex.vectorIndex();
prepareWrite(writeIndex);
prepareWrite(writeIndex - 1);

// Track the last write location for zero-fill use next time around.

Expand All @@ -84,7 +84,7 @@ private void prepareWrite(int writeIndex) {

@Override
public void setValueCount(int valueCount) {
prepareWrite(valueCount);
prepareWrite(valueCount - 1);
mutator.setValueCount(valueCount);
}

Expand Down
Loading