Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion be/src/vec/aggregate_functions/aggregate_function_sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ struct AggregateFunctionSortData {
PBlock pblock;
pblock.ParseFromString(data);
auto st = block.deserialize(pblock);
CHECK(st.ok());
// If memory allocate failed during deserialize, st is not ok, throw exception here to
// stop the query.
if (!st.ok()) {
throw doris::Exception(st);
}
}

void add(const IColumn** columns, size_t columns_num, size_t row_num) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,10 @@ struct WindowFunnelState {
}
Block block;
auto status = block.deserialize(pblock);
// If memory allocate failed during deserialize, st is not ok, throw exception here to
// stop the query.
if (!status.ok()) {
throw doris::Exception(ErrorCode::INTERNAL_ERROR, status.to_string());
throw doris::Exception(status);
}
mutable_block = MutableBlock(std::move(block));
_reset_columns_ptr();
Expand Down
Loading