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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new b1a2846b784  [Chore](schema-change) return error when tablet_schema 
get null function #46790  (#46962)
b1a2846b784 is described below

commit b1a2846b784f21369ee669fdc44061638a5a605b
Author: Pxl <x...@selectdb.com>
AuthorDate: Tue Jan 14 15:27:17 2025 +0800

     [Chore](schema-change) return error when tablet_schema get null function 
#46790  (#46962)
    
    pick from #46790
---
 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: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to