Skip to content

Commit

Permalink
[Refactor] Clean up codes
Browse files Browse the repository at this point in the history
Signed-off-by: leorishdu <[email protected]>
  • Loading branch information
dujijun007 committed Aug 3, 2024
1 parent 64018b1 commit 728f7f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions be/src/storage/rowset/array_column_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ArrayColumnWriter::ArrayColumnWriter(const ColumnWriterOptions& opts, TypeInfoPt
_array_size_writer(std::move(offset_writer)),
_element_writer(std::move(element_writer)) {
if (_opts.need_vector_index) {
CHECK(_opts.tablet_index.count(IndexType::VECTOR) > 0);
DCHECK(_opts.tablet_index.count(IndexType::VECTOR) > 0);
auto tablet_index = std::make_shared<TabletIndex>(_opts.tablet_index.at(IndexType::VECTOR));
std::string index_path = _opts.standalone_index_file_paths.at(IndexType::VECTOR);
VectorIndexWriter::create(tablet_index, index_path, is_nullable(), &_vector_index_writer);
Expand Down Expand Up @@ -236,7 +236,6 @@ Status ArrayColumnWriter::write_vector_index(uint64_t* index_size) {
if (_vector_index_writer.get()) {
RETURN_IF_ERROR(_vector_index_writer->finish(index_size));
}
LOG(INFO) << "Write vector index for column " << _opts.meta->unique_id();
return Status::OK();
}

Expand Down

0 comments on commit 728f7f4

Please sign in to comment.