[FixAssist](compaction) add DCHECK in BlockReader::_unique_key_next_block to reason problem (#11951)
This commit is contained in:
@ -294,11 +294,13 @@ Status BlockReader::_unique_key_next_block(Block* block, MemPool* mem_pool, Obje
|
||||
filter_data[i] = delete_data[i] == 0;
|
||||
}
|
||||
|
||||
ColumnWithTypeAndName column_with_type_and_name {
|
||||
_delete_filter_column, std::make_shared<DataTypeUInt8>(), "filter"};
|
||||
ColumnWithTypeAndName column_with_type_and_name {_delete_filter_column,
|
||||
std::make_shared<DataTypeUInt8>(),
|
||||
"__DORIS_COMPACTION_FILTER__"};
|
||||
block->insert(column_with_type_and_name);
|
||||
Block::filter_block(block, delete_sign_idx, target_columns.size());
|
||||
_stats.rows_del_filtered += target_block_row - block->rows();
|
||||
DCHECK(block->try_get_by_name("__DORIS_COMPACTION_FILTER__") == nullptr);
|
||||
}
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user