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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 356c25443c2 branch-4.0: [chore](memtable) use doris::Exception replace 
std::runtime_error #58098 (#58102)
356c25443c2 is described below

commit 356c25443c2e43e45316feb803a3bd8be8e7619e
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Nov 18 16:14:36 2025 +0800

    branch-4.0: [chore](memtable) use doris::Exception replace 
std::runtime_error #58098 (#58102)
    
    Cherry-picked from #58098
    
    Co-authored-by: hui lai <[email protected]>
---
 be/src/olap/memtable.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/be/src/olap/memtable.cpp b/be/src/olap/memtable.cpp
index 7eac0aa720d..690b47426a0 100644
--- a/be/src/olap/memtable.cpp
+++ b/be/src/olap/memtable.cpp
@@ -105,8 +105,9 @@ void MemTable::_init_columns_offset_by_slot_descs(const 
std::vector<SlotDescript
 
 void MemTable::_init_agg_functions(const vectorized::Block* block) {
     if (_num_columns > _column_offset.size()) [[unlikely]] {
-        throw std::runtime_error(fmt::format("num_columns {} is greater than 
block columns {}",
-                                             _num_columns, 
_column_offset.size()));
+        throw doris::Exception(doris::ErrorCode::INTERNAL_ERROR,
+                               "num_columns {} is greater than block columns 
{}", _num_columns,
+                               _column_offset.size());
     }
     for (auto cid = _tablet_schema->num_key_columns(); cid < _num_columns; 
++cid) {
         vectorized::AggregateFunctionPtr function;


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

Reply via email to