File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments