You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "eldenmoon (via GitHub)" <gi...@apache.org> on 2024/10/24 15:16:08 UTC

[PR] Be column mem [doris]

eldenmoon opened a new pull request, #42448:
URL: https://github.com/apache/doris/pull/42448

   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2449745071

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] Be column mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2435581356

   Thank you for your contribution to Apache Doris.
   Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR)
   
   Since 2024-03-18, the Document has been moved to [doris-website](https://github.com/apache/doris-website).
   See [Doris Document](https://cwiki.apache.org/confluence/display/DORIS/Doris+Document).


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] Be column mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2435637659

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2451706786

   TeamCity be ut coverage result:
    Function Coverage: 37.84% (9829/25978) 
    Line Coverage: 29.00% (81671/281590)
    Region Coverage: 28.27% (42163/149141)
    Branch Coverage: 24.84% (21384/86080)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/c04ccb01907bec835aa49e727010162ed6910eb3_c04ccb01907bec835aa49e727010162ed6910eb3/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2449938805

   TeamCity be ut coverage result:
    Function Coverage: 37.95% (9859/25977) 
    Line Coverage: 29.18% (82140/281475)
    Region Coverage: 28.44% (42377/148981)
    Branch Coverage: 25.02% (21534/86072)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/5db093e5c63924b284af62d575c9bbee04864b41_5db093e5c63924b284af62d575c9bbee04864b41/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] Be column mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2435581652

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "xiaokang (via GitHub)" <gi...@apache.org>.
xiaokang commented on code in PR #42448:
URL: https://github.com/apache/doris/pull/42448#discussion_r1830366830


##########
be/src/olap/rowset/segment_v2/inverted_index_writer.cpp:
##########
@@ -75,6 +75,23 @@ const int32_t MAX_LEAF_COUNT = 1024;
 const float MAXMBSortInHeap = 512.0 * 8;
 const int DIMS = 1;
 
+bool InvertedIndexColumnWriter::check_support_inverted_index(const TabletColumn& column) {
+    // bellow types are not supported in inverted index for extracted columns
+    static std::set<FieldType> invalid_types = {
+            FieldType::OLAP_FIELD_TYPE_DOUBLE,
+            FieldType::OLAP_FIELD_TYPE_JSONB,
+            FieldType::OLAP_FIELD_TYPE_ARRAY,

Review Comment:
   array is supported by inverted index



##########
be/src/olap/rowset/segment_v2/inverted_index_writer.cpp:
##########
@@ -75,6 +75,23 @@ const int32_t MAX_LEAF_COUNT = 1024;
 const float MAXMBSortInHeap = 512.0 * 8;
 const int DIMS = 1;
 
+bool InvertedIndexColumnWriter::check_support_inverted_index(const TabletColumn& column) {
+    // bellow types are not supported in inverted index for extracted columns
+    static std::set<FieldType> invalid_types = {
+            FieldType::OLAP_FIELD_TYPE_DOUBLE,
+            FieldType::OLAP_FIELD_TYPE_JSONB,
+            FieldType::OLAP_FIELD_TYPE_ARRAY,
+            FieldType::OLAP_FIELD_TYPE_FLOAT,
+    };
+    if (column.is_extracted_column() && (invalid_types.contains(column.type()))) {

Review Comment:
   why check is_extracted_column?



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon merged PR #42448:
URL: https://github.com/apache/doris/pull/42448


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2458672455

   TeamCity be ut coverage result:
    Function Coverage: 37.89% (9847/25991) 
    Line Coverage: 29.05% (81907/281915)
    Region Coverage: 28.28% (42185/149182)
    Branch Coverage: 24.86% (21408/86104)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/7fcc7d58f1c335b94adc0584bc83d2ebd65bd90e_7fcc7d58f1c335b94adc0584bc83d2ebd65bd90e/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2458697681

   PR approved by anyone and no changes requested.


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2443438655

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2449198500

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2449617527

   TeamCity be ut coverage result:
    Function Coverage: 37.95% (9854/25966) 
    Line Coverage: 29.20% (82106/281159)
    Region Coverage: 28.44% (42345/148876)
    Branch Coverage: 25.02% (21512/85990)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/d492717f97fd8cb70d19dbddab69600dc4deba14_d492717f97fd8cb70d19dbddab69600dc4deba14/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2458574310

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2454214127

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2451140169

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2449352013

   TeamCity be ut coverage result:
    Function Coverage: 37.96% (9857/25966) 
    Line Coverage: 29.20% (82098/281158)
    Region Coverage: 28.45% (42358/148876)
    Branch Coverage: 25.03% (21522/85990)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/076133182948d3e29e1df91e1938fd3c3b894996_076133182948d3e29e1df91e1938fd3c3b894996/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2458697657

   PR approved by at least one committer and no changes requested.


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2454226535

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2449751032

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] Be column mem [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #42448:
URL: https://github.com/apache/doris/pull/42448#discussion_r1815271477


##########
be/src/olap/tablet_schema.cpp:
##########
@@ -942,7 +943,8 @@ void TabletSchema::clear_columns() {
     _cols.clear();
 }
 
-void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns) {
+void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,

Review Comment:
   warning: function 'init_from_pb' exceeds recommended size/complexity thresholds [readability-function-size]
   ```cpp
   void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,
                      ^
   ```
   <details>
   <summary>Additional context</summary>
   
   **be/src/olap/tablet_schema.cpp:945:** 85 lines including whitespace and comments (threshold 80)
   ```cpp
   void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,
                      ^
   ```
   
   </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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2454420662

   TeamCity be ut coverage result:
    Function Coverage: 37.84% (9832/25984) 
    Line Coverage: 29.00% (81742/281883)
    Region Coverage: 28.24% (42135/149221)
    Branch Coverage: 24.82% (21378/86148)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/49747e9db3aa093b06c3f00ab923da751fa46d3f_49747e9db3aa093b06c3f00ab923da751fa46d3f/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2445846487

   TeamCity be ut coverage result:
    Function Coverage: 37.96% (9853/25957) 
    Line Coverage: 29.23% (82034/280673)
    Region Coverage: 28.57% (42299/148070)
    Branch Coverage: 25.10% (21499/85666)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/6df5f7abaaaab13594aad54e96f4994291637217_6df5f7abaaaab13594aad54e96f4994291637217/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2451606723

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #42448:
URL: https://github.com/apache/doris/pull/42448#discussion_r1830300264


##########
be/src/olap/tablet_schema.cpp:
##########
@@ -947,9 +951,18 @@ void TabletSchema::clear_columns() {
     _num_null_columns = 0;
     _num_key_columns = 0;
     _cols.clear();
+    clear_column_cache_handlers();
+}
+
+void TabletSchema::clear_column_cache_handlers() {
+    for (auto* cache_handle : _column_cache_handlers) {
+        TabletColumnObjectPool::instance()->release(cache_handle);
+    }
+    _column_cache_handlers.clear();
 }
 
-void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns) {
+void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,

Review Comment:
   warning: function 'init_from_pb' exceeds recommended size/complexity thresholds [readability-function-size]
   ```cpp
   void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,
                      ^
   ```
   <details>
   <summary>Additional context</summary>
   
   **be/src/olap/tablet_schema.cpp:963:** 88 lines including whitespace and comments (threshold 80)
   ```cpp
   void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,
                      ^
   ```
   
   </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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] Be column mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2436672685

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] Be column mem [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2435594660

   clang-tidy review says "All clean, LGTM! :+1:"


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #42448:
URL: https://github.com/apache/doris/pull/42448#discussion_r1827445538


##########
be/src/olap/tablet_schema.cpp:
##########
@@ -940,9 +944,18 @@ void TabletSchema::clear_columns() {
     _num_null_columns = 0;
     _num_key_columns = 0;
     _cols.clear();
+    clear_column_cache_handlers();
+}
+
+void TabletSchema::clear_column_cache_handlers() {
+    for (auto* cache_handle : _column_cache_handlers) {
+        TabletColumnObjectPool::instance()->release(cache_handle);
+    }
+    _column_cache_handlers.clear();
 }
 
-void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns) {
+void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,

Review Comment:
   warning: function 'init_from_pb' exceeds recommended size/complexity thresholds [readability-function-size]
   ```cpp
   void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,
                      ^
   ```
   <details>
   <summary>Additional context</summary>
   
   **be/src/olap/tablet_schema.cpp:956:** 88 lines including whitespace and comments (threshold 80)
   ```cpp
   void TabletSchema::init_from_pb(const TabletSchemaPB& schema, bool ignore_extracted_columns,
                      ^
   ```
   
   </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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2443615709

   TeamCity be ut coverage result:
    Function Coverage: 37.49% (9727/25946) 
    Line Coverage: 28.74% (80657/280661)
    Region Coverage: 28.15% (41685/148059)
    Branch Coverage: 24.72% (21178/85672)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/a4fb4efc304993000cafa4eac9ab68dc8fc56c7c_a4fb4efc304993000cafa4eac9ab68dc8fc56c7c/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2445759278

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2443114173

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2443111920

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "eldenmoon (via GitHub)" <gi...@apache.org>.
eldenmoon commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2449566744

   run buildall


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Opt](TabletSchema) reuse TabletColumn info to reduce mem [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #42448:
URL: https://github.com/apache/doris/pull/42448#issuecomment-2451219889

   TeamCity be ut coverage result:
    Function Coverage: 37.83% (9827/25976) 
    Line Coverage: 29.00% (81650/281548)
    Region Coverage: 28.26% (42145/149116)
    Branch Coverage: 24.85% (21386/86068)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/d0cc4f73393eb9b2a57d5fc96a79e06df7ce7924_d0cc4f73393eb9b2a57d5fc96a79e06df7ce7924/report/index.html


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org