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

hello-stephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 36429ee4415 [fix](env) fix beut build (#63691)
36429ee4415 is described below

commit 36429ee44159967aa942941e6d22de0bbb78cc64
Author: Mryange <[email protected]>
AuthorDate: Wed May 27 10:01:29 2026 +0800

    [fix](env) fix beut build (#63691)
    
    ### What problem does this PR solve?
    
    
    https://github.com/apache/doris/pull/63491
    https://github.com/apache/doris/pull/63049
    
    
    ```
    ../src/core/assert_cast.h:54:19: error: static assertion failed due to 
requirement '!std::is_same_v<doris::ColumnVector<doris::TYPE_BOOLEAN> *, 
doris::ColumnVector<doris::TYPE_BOOLEAN> *>': assert_cast is redundant for the 
same type after removing cv/ref qualifiers
       54 |     static_assert(!std::is_same_v<AssertCastNormalizedType_t<To>, 
AssertCastNormalizedType_t<From>>,
          |                   
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../test/exprs/function/geo/functions_geo_test.cpp:375:5: note: in 
instantiation of function template specialization 
'assert_cast<doris::ColumnVector<doris::TYPE_BOOLEAN> *, 
TypeCheckOnRelease::ENABLE, doris::ColumnVector<doris::TYPE_BOOLEAN> *>' 
requested here
      375 |     
assert_cast<ColumnUInt8*>(nullable_input->get_null_map_column_ptr().get())->insert_value(0);
          |     ^
    1 error generated.
    ```
---
 be/test/exprs/function/geo/functions_geo_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/test/exprs/function/geo/functions_geo_test.cpp 
b/be/test/exprs/function/geo/functions_geo_test.cpp
index dcea4939fe1..338df011af0 100644
--- a/be/test/exprs/function/geo/functions_geo_test.cpp
+++ b/be/test/exprs/function/geo/functions_geo_test.cpp
@@ -372,7 +372,7 @@ TEST(VGeoFunctionsTest, function_geo_st_geometries_invalid) 
{
     // Insert non-null but invalid data
     auto* nullable_input = assert_cast<ColumnNullable*>(input_col.get());
     nullable_input->get_nested_column_ptr()->insert_data(invalid_buf.data(), 
invalid_buf.size());
-    
assert_cast<ColumnUInt8*>(nullable_input->get_null_map_column_ptr().get())->insert_value(0);
+    nullable_input->get_null_map_column_ptr()->insert_value(0);
     block.insert({std::move(input_col), input_type, "shape"});
 
     FunctionBasePtr func = SimpleFunctionFactory::instance().get_function(


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

Reply via email to