github-actions[bot] commented on code in PR #37526: URL: https://github.com/apache/doris/pull/37526#discussion_r1669837531
########## be/src/vec/common/schema_util.cpp: ########## @@ -483,25 +482,8 @@ Status get_least_common_schema(const std::vector<TabletSchemaSPtr>& schemas, return Status::OK(); } -Status parse_and_encode_variant_columns(Block& block, const std::vector<int>& variant_pos, - const ParseContext& ctx) { - try { - // Parse each variant column from raw string column - RETURN_IF_ERROR(vectorized::schema_util::parse_variant_columns(block, variant_pos, ctx)); - vectorized::schema_util::finalize_variant_columns(block, variant_pos, - false /*not ingore sparse*/); - RETURN_IF_ERROR( - vectorized::schema_util::encode_variant_sparse_subcolumns(block, variant_pos)); - } catch (const doris::Exception& e) { - // TODO more graceful, max_filter_ratio - LOG(WARNING) << "encounter execption " << e.to_string(); - return Status::InternalError(e.to_string()); - } - return Status::OK(); -} - -Status parse_variant_columns(Block& block, const std::vector<int>& variant_pos, - const ParseContext& ctx) { +Status _parse_variant_columns(Block& block, const std::vector<int>& variant_pos, Review Comment: warning: function '_parse_variant_columns' has cognitive complexity of 59 (threshold 50) [readability-function-cognitive-complexity] ```cpp Status _parse_variant_columns(Block& block, const std::vector<int>& variant_pos, ^ ``` <details> <summary>Additional context</summary> **be/src/vec/common/schema_util.cpp:486:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp for (int i = 0; i < variant_pos.size(); ++i) { ^ ``` **be/src/vec/common/schema_util.cpp:496:** nesting level increased to 2 ```cpp auto encode_rowstore = [&]() { ^ ``` **be/src/vec/common/schema_util.cpp:497:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp if (!ctx.record_raw_json_column) { ^ ``` **be/src/vec/common/schema_util.cpp:501:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp if (record_raw_string_with_serialization) { ^ ``` **be/src/vec/common/schema_util.cpp:504:** +4, including nesting penalty of 3, nesting level increased to 4 ```cpp for (size_t i = 0; i < var->rows(); ++i) { ^ ``` **be/src/vec/common/schema_util.cpp:506:** +5, including nesting penalty of 4, nesting level increased to 5 ```cpp RETURN_IF_ERROR(var->serialize_one_row_to_string(i, &raw_str)); ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/vec/common/schema_util.cpp:506:** +6, including nesting penalty of 5, nesting level increased to 6 ```cpp RETURN_IF_ERROR(var->serialize_one_row_to_string(i, &raw_str)); ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/vec/common/schema_util.cpp:510:** +1, nesting level increased to 3 ```cpp } else { ^ ``` **be/src/vec/common/schema_util.cpp:520:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (!var.is_scalar_variant()) { ^ ``` **be/src/vec/common/schema_util.cpp:523:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp RETURN_IF_ERROR(encode_rowstore()); ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/vec/common/schema_util.cpp:523:** +4, including nesting penalty of 3, nesting level increased to 4 ```cpp RETURN_IF_ERROR(encode_rowstore()); ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/vec/common/schema_util.cpp:528:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (WhichDataType(remove_nullable(var.get_root_type())).is_json()) { ^ ``` **be/src/vec/common/schema_util.cpp:531:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp RETURN_IF_ERROR(cast_column({var.get_root(), var.get_root_type(), ""}, ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/vec/common/schema_util.cpp:533:** +4, including nesting penalty of 3, nesting level increased to 4 ```cpp ? make_nullable(std::make_shared<DataTypeString>()) ^ ``` **be/src/vec/common/schema_util.cpp:531:** +4, including nesting penalty of 3, nesting level increased to 4 ```cpp RETURN_IF_ERROR(cast_column({var.get_root(), var.get_root_type(), ""}, ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/vec/common/schema_util.cpp:536:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp if (raw_json_column->is_nullable()) { ^ ``` **be/src/vec/common/schema_util.cpp:540:** +1, nesting level increased to 2 ```cpp } else { ^ ``` **be/src/vec/common/schema_util.cpp:544:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp ? assert_cast<const ColumnNullable&>(root).get_nested_column_ptr() ^ ``` **be/src/vec/common/schema_util.cpp:554:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (is_nullable) { ^ ``` **be/src/vec/common/schema_util.cpp:560:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp RETURN_IF_ERROR(encode_rowstore()); ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/vec/common/schema_util.cpp:560:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp RETURN_IF_ERROR(encode_rowstore()); ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` </details> ########## be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp: ########## @@ -302,7 +305,8 @@ // 2.2 build read plan to read by batch // 2.3 fill block // 3. set columns to data convertor and then write all columns -Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& data) { +Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& data, Review Comment: warning: function '_append_block_with_partial_content' has cognitive complexity of 64 (threshold 50) [readability-function-cognitive-complexity] ```cpp Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& data, ^ ``` <details> <summary>Additional context</summary> **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:309:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if constexpr (!std::is_same_v<ExecEnv::Engine, StorageEngine>) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:325:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp RETURN_IF_ERROR(_olap_data_convertor->set_source_content_with_specifid_columns( ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:325:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp RETURN_IF_ERROR(_olap_data_convertor->set_source_content_with_specifid_columns( ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:356:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (const vectorized::ColumnWithTypeAndName* delete_sign_column = ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:361:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (delete_sign_col.size() >= data.row_pos + data.num_rows) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:368:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp DBUG_EXECUTE_IF("VerticalSegmentWriter._append_block_with_partial_content.sleep", ^ ``` **be/src/util/debug_points.h:36:** expanded from macro 'DBUG_EXECUTE_IF' ```cpp if (UNLIKELY(config::enable_debug_points)) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:368:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp DBUG_EXECUTE_IF("VerticalSegmentWriter._append_block_with_partial_content.sleep", ^ ``` **be/src/util/debug_points.h:38:** expanded from macro 'DBUG_EXECUTE_IF' ```cpp if (dp) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:372:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (specified_rowsets.size() != _mow_context->rowset_ids.size()) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:381:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (_opts.rowset_ctx->partial_update_info->is_strict_mode) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:395:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp for (size_t block_pos = data.row_pos; block_pos < data.row_pos + data.num_rows; block_pos++) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:406:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (have_input_seq_column) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:412:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (!_tablet_schema->has_sequence_col() || have_input_seq_column) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:413:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp RETURN_IF_ERROR(_primary_key_index_builder->add_item(key)); ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:413:** +4, including nesting penalty of 3, nesting level increased to 4 ```cpp RETURN_IF_ERROR(_primary_key_index_builder->add_item(key)); ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:418:** +1 ```cpp (delete_sign_column_data != nullptr && delete_sign_column_data[block_pos] != 0); ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:425:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (st.is<KEY_NOT_FOUND>()) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:426:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp if (_opts.rowset_ctx->partial_update_info->is_strict_mode) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:432:** +1, nesting level increased to 3 ```cpp } else { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:433:** +4, including nesting penalty of 3, nesting level increased to 4 ```cpp if (!_opts.rowset_ctx->partial_update_info->can_insert_new_rows_in_partial_update) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:455:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (!st.ok() && !st.is<KEY_ALREADY_EXISTS>()) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:465:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (have_delete_sign && !_tablet_schema->has_sequence_col()) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:468:** +1, nesting level increased to 2 ```cpp } else { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:475:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (st.is<KEY_ALREADY_EXISTS>()) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:482:** +1, nesting level increased to 2 ```cpp } else { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:490:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (config::enable_merge_on_write_correctness_check) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:497:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp RETURN_IF_ERROR(_fill_missing_columns(mutable_full_columns, use_default_or_null_flag, ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:497:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp RETURN_IF_ERROR(_fill_missing_columns(mutable_full_columns, use_default_or_null_flag, ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:501:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (_tablet_schema->store_row_column()) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:508:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp RETURN_IF_ERROR(_olap_data_convertor->set_source_content_with_specifid_columns( ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:508:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp RETURN_IF_ERROR(_olap_data_convertor->set_source_content_with_specifid_columns( ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:528:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (_tablet_schema->has_sequence_col() && !have_input_seq_column) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:535:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp if (_num_rows_written != data.row_pos || ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:542:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp for (size_t block_pos = data.row_pos; block_pos < data.row_pos + data.num_rows; ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:546:** +3, including nesting penalty of 2, nesting level increased to 3 ```cpp RETURN_IF_ERROR(_primary_key_index_builder->add_item(key)); ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:546:** +4, including nesting penalty of 3, nesting level increased to 4 ```cpp RETURN_IF_ERROR(_primary_key_index_builder->add_item(key)); ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` </details> ########## be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp: ########## @@ -302,7 +305,8 @@ // 2.2 build read plan to read by batch // 2.3 fill block // 3. set columns to data convertor and then write all columns -Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& data) { +Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& data, Review Comment: warning: function '_append_block_with_partial_content' exceeds recommended size/complexity thresholds [readability-function-size] ```cpp Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& data, ^ ``` <details> <summary>Additional context</summary> **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:307:** 248 lines including whitespace and comments (threshold 80) ```cpp Status VerticalSegmentWriter::_append_block_with_partial_content(RowsInBlock& data, ^ ``` </details> ########## be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp: ########## @@ -702,16 +706,127 @@ return Status::OK(); } +// for variant type, we should do following steps to fill content of block: +// 1. set block data to data convertor, and get all flattened columns from variant subcolumns +// 2. get sparse columns from previous sparse columns stripped in OlapColumnDataConvertorVariant +// 3. merge current columns info(contains extracted columns) with previous merged_tablet_schema +// which will be used to contruct the new schema for rowset +Status VerticalSegmentWriter::_append_block_with_variant_subcolumns(RowsInBlock& data) { Review Comment: warning: function '_append_block_with_variant_subcolumns' exceeds recommended size/complexity thresholds [readability-function-size] ```cpp Status VerticalSegmentWriter::_append_block_with_variant_subcolumns(RowsInBlock& data) { ^ ``` <details> <summary>Additional context</summary> **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:713:** 98 lines including whitespace and comments (threshold 80) ```cpp Status VerticalSegmentWriter::_append_block_with_variant_subcolumns(RowsInBlock& data) { ^ ``` </details> ########## be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp: ########## @@ -140,17 +140,18 @@ } } -Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& column) { +Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& column, Review Comment: warning: function '_create_column_writer' exceeds recommended size/complexity thresholds [readability-function-size] ```cpp Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& column, ^ ``` <details> <summary>Additional context</summary> **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:142:** 81 lines including whitespace and comments (threshold 80) ```cpp Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& column, ^ ``` </details> ########## be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp: ########## @@ -140,17 +140,18 @@ void VerticalSegmentWriter::_init_column_meta(ColumnMetaPB* meta, uint32_t colum } } -Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& column) { +Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& column, Review Comment: warning: function '_create_column_writer' has cognitive complexity of 51 (threshold 50) [readability-function-cognitive-complexity] ```cpp Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& column, ^ ``` <details> <summary>Additional context</summary> **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:154:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (tablet_index) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:163:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (_opts.rowset_ctx != nullptr) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:168:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (_opts.write_type == DataWriteType::TYPE_DIRECT && ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:174:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (!InvertedIndexColumnWriter::check_support_inverted_index(column)) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:202:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(STRUCT, "struct") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:202:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(STRUCT, "struct") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:202:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(STRUCT, "struct") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:203:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(ARRAY, "array") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:203:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(ARRAY, "array") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:203:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(ARRAY, "array") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:204:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(JSONB, "jsonb") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:204:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(JSONB, "jsonb") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:204:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(JSONB, "jsonb") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:205:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(AGG_STATE, "agg_state") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:205:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(AGG_STATE, "agg_state") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:205:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(AGG_STATE, "agg_state") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:206:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(MAP, "map") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:206:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(MAP, "map") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:206:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(MAP, "map") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:207:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(OBJECT, "object") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:207:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(OBJECT, "object") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:207:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(OBJECT, "object") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:208:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(HLL, "hll") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:208:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(HLL, "hll") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:208:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(HLL, "hll") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:209:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp CHECK_FIELD_TYPE(QUANTILE_STATE, "quantile_state") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:192:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (column.type() == FieldType::OLAP_FIELD_TYPE_##TYPE) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:209:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(QUANTILE_STATE, "quantile_state") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:194:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bloom_filter) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:209:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp CHECK_FIELD_TYPE(QUANTILE_STATE, "quantile_state") ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:197:** expanded from macro 'CHECK_FIELD_TYPE' ```cpp if (opts.need_bitmap_index) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:213:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp if (column.is_row_store_column()) { ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:218:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp RETURN_IF_ERROR(ColumnWriter::create(opts, &column, _file_writer, &writer)); ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:218:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp RETURN_IF_ERROR(ColumnWriter::create(opts, &column, _file_writer, &writer)); ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:219:** +1, including nesting penalty of 0, nesting level increased to 1 ```cpp RETURN_IF_ERROR(writer->init()); ^ ``` **be/src/common/status.h:612:** expanded from macro 'RETURN_IF_ERROR' ```cpp do { \ ^ ``` **be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp:219:** +2, including nesting penalty of 1, nesting level increased to 2 ```cpp RETURN_IF_ERROR(writer->init()); ^ ``` **be/src/common/status.h:614:** expanded from macro 'RETURN_IF_ERROR' ```cpp if (UNLIKELY(!_status_.ok())) { \ ^ ``` </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org