Skip to content

Commit

Permalink
Fix the unnecessary extra bytes when encoding row table
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Jun 26, 2024
1 parent fd6bf5a commit 7b6682c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/src/arrow/compute/row/encode_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ Status RowTableEncoder::EncodeSelected(RowTableImpl* rows, uint32_t num_selected
EncoderOffsets::GetRowOffsetsSelected(rows, batch_varbinary_cols_, num_selected,
selection);

RETURN_NOT_OK(rows->AppendEmpty(static_cast<uint32_t>(0),
static_cast<uint32_t>(rows->offsets()[num_selected])));
RETURN_NOT_OK(rows->AppendEmpty(static_cast<uint32_t>(0), static_cast<uint32_t>(0)));

for (size_t icol = 0; icol < batch_all_cols_.size(); ++icol) {
if (batch_all_cols_[icol].metadata().is_fixed_length) {
Expand Down

0 comments on commit 7b6682c

Please sign in to comment.