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

liaoxin 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 56fd3c6fa21 [chore](memtable) use doris::Exception replace 
std::runtime_error (#58098)
56fd3c6fa21 is described below

commit 56fd3c6fa213879be2ec300fb1169e441a5319dc
Author: hui lai <[email protected]>
AuthorDate: Tue Nov 18 11:38:09 2025 +0800

    [chore](memtable) use doris::Exception replace std::runtime_error (#58098)
    
    Use doris::Exception replace std::runtime_error.
---
 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 03a97d876c7..10150bc307f 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