Skip to content

Commit 36429ee

Browse files
authored
[fix](env) fix beut build (#63691)
### What problem does this PR solve? #63491 #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. ```
1 parent 2a94cd8 commit 36429ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

be/test/exprs/function/geo/functions_geo_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ TEST(VGeoFunctionsTest, function_geo_st_geometries_invalid) {
372372
// Insert non-null but invalid data
373373
auto* nullable_input = assert_cast<ColumnNullable*>(input_col.get());
374374
nullable_input->get_nested_column_ptr()->insert_data(invalid_buf.data(), invalid_buf.size());
375-
assert_cast<ColumnUInt8*>(nullable_input->get_null_map_column_ptr().get())->insert_value(0);
375+
nullable_input->get_null_map_column_ptr()->insert_value(0);
376376
block.insert({std::move(input_col), input_type, "shape"});
377377

378378
FunctionBasePtr func = SimpleFunctionFactory::instance().get_function(

0 commit comments

Comments
 (0)