eldenmoon commented on code in PR #36470:
URL: https://github.com/apache/doris/pull/36470#discussion_r1644530508


##########
be/src/olap/rowset/segment_v2/inverted_index_writer.cpp:
##########
@@ -653,7 +654,19 @@ Status InvertedIndexColumnWriter::create(const Field* 
field,
                                          const TabletIndex* index_meta) {
     const auto* typeinfo = field->type_info();
     FieldType type = typeinfo->type();
-    std::string field_name = field->name();
+    std::string field_name;
+    auto storage_format = index_file_writer->get_storage_format();
+    if (storage_format == InvertedIndexStorageFormatPB::V1) {
+        field_name = field->name();
+    } else {
+        if (field->is_extracted_column()) {
+            // variant sub col

Review Comment:
   maybe we should add v2 format cases?



-- 
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]

Reply via email to