Skip to content

Commit 0149e48

Browse files
rootroot
authored andcommitted
Fix for UT
1 parent 77bda5c commit 0149e48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

be/src/vec/columns/column_vector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ void ColumnVector<T>::insert_indices_from(const IColumn& src, const uint32_t* in
281281
const uint32_t* indices_end) {
282282
const auto& src_concrete = static_cast<const ColumnVector<T>&>(src);
283283
size_t src_size = src_concrete.size();
284-
if (indices_begin == nullptr || indices_end == nullptr || indices_begin > indices_end) {
284+
if (indices_begin == nullptr || indices_end == nullptr ||
285+
(indices_begin != indices_end && indices_begin > indices_end)) {
285286
throw Exception(ErrorCode::INTERNAL_ERROR,
286287
"Invalid index range: begin={}, end={}",
287288
static_cast<const void*>(indices_begin),

0 commit comments

Comments
 (0)