Skip to content

Commit

Permalink
[FIX](upgrade)fix upgrade for predict column delete collection type w…
Browse files Browse the repository at this point in the history
…ill make core apache#26006
  • Loading branch information
amorynan authored and wsjz committed Nov 19, 2023
1 parent 13123cf commit 5d9f072
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions be/src/olap/rowset/segment_v2/segment_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,8 +1821,9 @@ Status SegmentIterator::_next_batch_internal(vectorized::Block* block) {
auto cid = _schema->column_id(i);
auto column_desc = _schema->column(cid);
if (_is_pred_column[cid]) {
_current_return_columns[cid] =
Schema::get_predicate_column_ptr(*column_desc, _opts.io_ctx.reader_type);
RETURN_IF_CATCH_EXCEPTION(_current_return_columns[cid] =
Schema::get_predicate_column_ptr(
*column_desc, _opts.io_ctx.reader_type));
_current_return_columns[cid]->set_rowset_segment_id(
{_segment->rowset_id(), _segment->id()});
_current_return_columns[cid]->reserve(_opts.block_row_max);
Expand Down
4 changes: 3 additions & 1 deletion be/src/olap/schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ vectorized::IColumn::MutablePtr Schema::get_predicate_column_ptr(const Field& fi
ptr = doris::vectorized::PredicateColumnType<TYPE_IPV6>::create();
break;
default:
LOG(FATAL) << "Unexpected type when choosing predicate column, type=" << int(field.type());
throw Exception(ErrorCode::SCHEMA_SCHEMA_FIELD_INVALID,
fmt::format("Unexpected type when choosing predicate column, type={}",
int(field.type())));
}

if (field.is_nullable()) {
Expand Down

0 comments on commit 5d9f072

Please sign in to comment.