xiaokang commented on code in PR #36470:
URL: https://github.com/apache/doris/pull/36470#discussion_r1644476696
##########
be/src/olap/field.h:
##########
@@ -258,6 +264,8 @@ class Field {
int32_t _precision;
int32_t _scale;
int32_t _unique_id;
+ int32_t _parent_col_unique_id;
Review Comment:
_parent_unique_id
##########
be/src/olap/rowset/segment_v2/segment_iterator.h:
##########
@@ -396,6 +396,13 @@ class SegmentIterator : public RowwiseIterator {
// read schema from scanner
SchemaSPtr _schema;
// storage type schema related to _schema, since column in segment may be
different with type in _schema
+ // <field_name, storage_type> , only used in inverted index
+ // field_name is the name of inverted index document's filed
+ // 1. for inverted_index_storage_format_v1, field_name is the
`column_name` in Doris
+ // 2. for inverted_index_storage_format_v2
+ // 2.1 for normal column, field_name is the `column_unique_id` in Doris
+ // 2.2 for variant column, field_name is the
`parent_column_unique_id.sub_column_name` in Doris
+ // storage_type is the data type in Doris
std::vector<vectorized::NameAndTypePair> _storage_name_and_type;
Review Comment:
Change NameAndTypePair to IndexFieldNameAndTypePair to avoid misuse.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]