Skip to content

Commit 078b574

Browse files
mapleFUpitrou
authored andcommitted
Update code
1 parent 337605c commit 078b574

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/src/arrow/buffer_builder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ARROW_EXPORT BufferBuilder {
6767

6868
/// \brief Resize the buffer to the nearest multiple of 64 bytes
6969
///
70-
/// \param new_capacity the new capacity of the of the builder. Will be
70+
/// \param new_capacity the new capacity of the builder. Will be
7171
/// rounded up to a multiple of 64 bytes for padding
7272
/// \param shrink_to_fit if new capacity is smaller than the existing,
7373
/// reallocate internal buffer. Set to false to avoid reallocations when

cpp/src/parquet/decoder.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,8 +2066,8 @@ class DeltaByteArrayDecoderImpl : public TypedDecoderImpl<DType> {
20662066
if constexpr (std::is_same_v<DType, FLBAType>) {
20672067
// Checks all values
20682068
for (int i = 0; i < max_values; i++) {
2069-
if (ARROW_PREDICT_FALSE(buffer[i].len != this->type_length_)) {
2070-
return Status::Invalid("FLBA type requires fixed-length ", this->type_length_,
2069+
if (buffer[i].len != static_cast<uint32_t>(this->type_length_)) {
2070+
throw ParquetException("FLBA type requires fixed-length ", this->type_length_,
20712071
" but got ", buffer[i].len);
20722072
}
20732073
}

0 commit comments

Comments
 (0)