This is an automated email from the ASF dual-hosted git repository. panxiaolei pushed a commit to branch cp_0114_5 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 9f327f0cd188b0e1c888d240a841c88c557f2475 Author: BiteTheDDDDt <[email protected]> AuthorDate: Tue Jan 14 12:51:03 2025 +0800 return error when tablet_schema get null function --- be/src/olap/schema_change.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/be/src/olap/schema_change.cpp b/be/src/olap/schema_change.cpp index b5cc293bdff..969a287e993 100644 --- a/be/src/olap/schema_change.cpp +++ b/be/src/olap/schema_change.cpp @@ -128,6 +128,12 @@ public: vectorized::AggregateFunctionPtr function = tablet_schema->column(i).get_aggregate_function( vectorized::AGG_LOAD_SUFFIX); + if (!function) { + return Status::InternalError( + "could not find aggregate function on column {}, aggregation={}", + tablet_schema->column(i).name(), + tablet_schema->column(i).aggregation()); + } agg_functions.push_back(function); // create aggregate data auto* place = new char[function->size_of_data()]; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
