Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion cpp/src/arrow/array/validate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct ValidateArrayImpl {
return Status::Invalid("Negative offsets in binary array");
}
const auto data_extent = last_offset - first_offset;
const auto values_length = values.size();
const auto values_length = values.capacity();
if (values_length < data_extent) {
return Status::Invalid("Length spanned by binary offsets (", data_extent,
") larger than values array (size ", values_length, ")");
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/parquet/column_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ class ByteArrayChunkedRecordReader : public TypedRecordReader<ByteArrayType>,
int64_t binary_length = last_offset - first_offset;
// std::cout << "binary_length:" << binary_length << std::endl;
values_->SetSize(binary_length);

offset_ = AllocateBuffer(this->pool_);
bianry_length_ = 0;
return result;
Expand Down