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 f6a4f022923 [chore](beut) fix beut use assume_mutable (#63598)
f6a4f022923 is described below
commit f6a4f0229239d15a9959c63d877b7a642083663d
Author: Mryange <[email protected]>
AuthorDate: Mon May 25 18:45:07 2026 +0800
[chore](beut) fix beut use assume_mutable (#63598)
### What problem does this PR solve?
Related PR: https://github.com/apache/doris/pull/63386
now use assert_mutable
---
be/benchmark/benchmark_column_array_view.hpp | 2 +-
be/benchmark/benchmark_column_array_view_distance.hpp | 2 +-
be/test/core/column/column_array_view_test.cpp | 6 ++++--
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/be/benchmark/benchmark_column_array_view.hpp
b/be/benchmark/benchmark_column_array_view.hpp
index 09baf2bd435..4ba5fc522a7 100644
--- a/be/benchmark/benchmark_column_array_view.hpp
+++ b/be/benchmark/benchmark_column_array_view.hpp
@@ -126,7 +126,7 @@ static ColumnPtr make_string_array_column() {
// Wrap with outer Nullable (no rows are actually null, just the wrapper
overhead).
static ColumnPtr wrap_nullable(const ColumnPtr& col) {
- return ColumnNullable::create(col->assume_mutable(),
+ return ColumnNullable::create(col->assert_mutable(),
ColumnUInt8::create(col->size(), 0));
}
diff --git a/be/benchmark/benchmark_column_array_view_distance.hpp
b/be/benchmark/benchmark_column_array_view_distance.hpp
index 34fd287f203..567a1b84d5d 100644
--- a/be/benchmark/benchmark_column_array_view_distance.hpp
+++ b/be/benchmark/benchmark_column_array_view_distance.hpp
@@ -264,7 +264,7 @@
BENCHMARK(ArrayView_Distance_Const_Plain_Flat)->Unit(benchmark::kNanosecond);
// ============================================================
static ColumnPtr wrap_nullable_for_dist(const ColumnPtr& col) {
- return ColumnNullable::create(col->assume_mutable(),
ColumnUInt8::create(col->size(), 0));
+ return ColumnNullable::create(col->assert_mutable(),
ColumnUInt8::create(col->size(), 0));
}
static void Handwritten_Distance_Nullable_Plain(benchmark::State& state) {
diff --git a/be/test/core/column/column_array_view_test.cpp
b/be/test/core/column/column_array_view_test.cpp
index 57492c95817..48d856b18d4 100644
--- a/be/test/core/column/column_array_view_test.cpp
+++ b/be/test/core/column/column_array_view_test.cpp
@@ -66,7 +66,8 @@ static ColumnPtr build_int32_array_column(const
std::vector<std::vector<int32_t>
for (auto v : row_nulls) {
outer_null->insert_value(v);
}
- array_col = ColumnNullable::create(array_col->assume_mutable(),
std::move(outer_null));
+ ColumnPtr outer_null_col = std::move(outer_null);
+ array_col = ColumnNullable::create(array_col, outer_null_col);
}
return array_col;
}
@@ -101,7 +102,8 @@ static ColumnPtr build_string_array_column(const
std::vector<std::vector<std::st
for (auto v : row_nulls) {
outer_null->insert_value(v);
}
- array_col = ColumnNullable::create(array_col->assume_mutable(),
std::move(outer_null));
+ ColumnPtr outer_null_col = std::move(outer_null);
+ array_col = ColumnNullable::create(array_col, outer_null_col);
}
return array_col;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]