This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 82e1766a43a branch-4.1: [chore](topn) check column type before merging 
lazy materialization columns #61633 (#61668)
82e1766a43a is described below

commit 82e1766a43a37a368c685a6a186fe4c9e681a452
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Mar 25 13:48:21 2026 +0800

    branch-4.1: [chore](topn) check column type before merging lazy 
materialization columns #61633 (#61668)
    
    Cherry-picked from #61633
    
    Co-authored-by: TengJianPing <[email protected]>
---
 be/src/exec/operator/materialization_opertor.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/be/src/exec/operator/materialization_opertor.cpp 
b/be/src/exec/operator/materialization_opertor.cpp
index f75e445f6f5..d728b1bbd77 100644
--- a/be/src/exec/operator/materialization_opertor.cpp
+++ b/be/src/exec/operator/materialization_opertor.cpp
@@ -80,6 +80,14 @@ Status MaterializationSharedState::merge_multi_response() {
             }
         }
 
+        // return error if any column in response block is not compatible with 
source block column
+        for (int k = 0; k < response_blocks[i].columns(); ++k) {
+            const auto& resp_col_type = 
response_blocks[i].get_datatype_by_position(k);
+            for (const auto& [_, source_block_rows] : block_maps) {
+                RETURN_IF_ERROR(resp_col_type->check_column(
+                        *source_block_rows.first.get_by_position(k).column));
+            }
+        }
         for (int j = 0; j < block_order_results[i].size(); ++j) {
             auto backend_id = block_order_results[i][j];
             if (backend_id) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to