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

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


The following commit(s) were added to refs/heads/branch-4.2 by this push:
     new 14f51cdaf1b [fix](runtime-filter) Fix nullable column handling in 
change_null_to_true (#70507)
14f51cdaf1b is described below

commit 14f51cdaf1b87602b26f2315625df31080101dfc
Author: Mryange <[email protected]>
AuthorDate: Mon Nov 23 21:29:44 2026 +0800

    [fix](runtime-filter) Fix nullable column handling in change_null_to_true 
(#70507)
    
    ### What problem does this PR solve?
    
    Issue Number: None
    
    Related PR: https://github.com/apache/doris/pull/64627
    
    A nullable runtime-filter result can have no NULLs in the current batch.
    Checking has_null() then treating that result as a bare ColumnUInt8 when
    the probe argument contains NULLs can fail a type assertion and abort
    the BE. Check the physical column type instead.
    
    Master already corrects this path in the COW refactoring #64627. This
    release-branch fix changes only the type check and preserves the
    existing interface.
    
    ### Release note
    
    Fix a possible BE crash when evaluating a null-aware runtime filter.
    
    ### Check List (For Author)
    
    - Test
        - [ ] Regression test
        - [ ] Unit Test
        - [ ] Manual test
    
    No new tests added. Build and tests were not run. clang-format 16 and
    git diff --check passed.
    
    - Behavior changed:
    - [x] Yes. Nullable columns with an all-zero null map use the nullable
    branch.
    
    - Does this need documentation?
        - [x] No.
    
    ### Check List (For Reviewer who merge this PR)
    
    - [ ] Confirm the release note
    - [ ] Confirm test cases
    - [ ] Confirm document
    - [ ] Add branch pick label
---
 be/src/exec/common/util.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/exec/common/util.hpp b/be/src/exec/common/util.hpp
index 634500e0bb3..7238497a087 100644
--- a/be/src/exec/common/util.hpp
+++ b/be/src/exec/common/util.hpp
@@ -247,7 +247,7 @@ inline void change_null_to_true(ColumnPtr column, ColumnPtr 
argument = nullptr)
     size_t rows = column->size();
     if (is_column_const(*column)) {
         change_null_to_true(assert_cast<const 
ColumnConst*>(column.get())->get_data_column_ptr());
-    } else if (column->has_null()) {
+    } else if (is_column_nullable(*column)) {
         auto* nullable =
                 const_cast<ColumnNullable*>(assert_cast<const 
ColumnNullable*>(column.get()));
         auto* __restrict data = 
assert_cast<ColumnUInt8*>(nullable->get_nested_column_ptr().get())


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

Reply via email to