HappenLee commented on code in PR #36409:
URL: https://github.com/apache/doris/pull/36409#discussion_r1643678011


##########
be/src/exec/schema_scanner/schema_processlist_scanner.cpp:
##########
@@ -90,48 +97,36 @@ Status 
SchemaProcessListScanner::_fill_block_impl(vectorized::Block* block) {
 
         for (size_t row_idx = 0; row_idx < row_num; ++row_idx) {
             const auto& row = process_list[row_idx];
+            if (row.size() != _s_processlist_columns.size()) {
+                return Status::InternalError(
+                        "process list meet invalid schema, schema_size={}, 
input_data_size={}",
+                        _s_processlist_columns.size(), row.size());
+            }
 
             // Fetch and store the column value based on its index
             std::string& column_value =

Review Comment:
   seems do a unless code



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

Reply via email to