You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2025/11/18 08:14:43 UTC
(doris) branch branch-4.0 updated: branch-4.0: [chore](memtable) use doris::Exception replace std::runtime_error #58098 (#58102)
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] <41...@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 <la...@selectdb.com>
---
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org