This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 3836a96531f branch-3.0: [enhancement](memoryfailed) throw exception if
block.serialize meet error status #51335 (#51364)
3836a96531f is described below
commit 3836a96531f6d6d919daf51c348fd7a0fa080fb1
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jun 11 10:38:47 2025 +0800
branch-3.0: [enhancement](memoryfailed) throw exception if block.serialize
meet error status #51335 (#51364)
Cherry-picked from #51335
Co-authored-by: Pxl <[email protected]>
---
be/src/vec/aggregate_functions/aggregate_function_sort.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/be/src/vec/aggregate_functions/aggregate_function_sort.h
b/be/src/vec/aggregate_functions/aggregate_function_sort.h
index 466aa15786a..337642ece25 100644
--- a/be/src/vec/aggregate_functions/aggregate_function_sort.h
+++ b/be/src/vec/aggregate_functions/aggregate_function_sort.h
@@ -75,9 +75,11 @@ struct AggregateFunctionSortData {
PBlock pblock;
size_t uncompressed_bytes = 0;
size_t compressed_bytes = 0;
- static_cast<void>(block.serialize(state->be_exec_version(), &pblock,
&uncompressed_bytes,
- &compressed_bytes,
-
segment_v2::CompressionTypePB::NO_COMPRESSION));
+ auto st = block.serialize(state->be_exec_version(), &pblock,
&uncompressed_bytes,
+ &compressed_bytes,
segment_v2::CompressionTypePB::NO_COMPRESSION);
+ if (!st.ok()) {
+ throw doris::Exception(st);
+ }
write_string_binary(pblock.SerializeAsString(), buf);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]