This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
new ad510727c4 [branch-1.2][Fix](dyncmic-partition) Check bucket size
before find tablet. (#20430)
ad510727c4 is described below
commit ad510727c49cff4653450ca2084455a7d13a640c
Author: Xiangyu Wang <[email protected]>
AuthorDate: Mon Jun 5 16:10:27 2023 +0800
[branch-1.2][Fix](dyncmic-partition) Check bucket size before find tablet.
(#20430)
Co-authored-by: 王翔宇 <[email protected]>
---
be/src/exec/tablet_sink.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/be/src/exec/tablet_sink.cpp b/be/src/exec/tablet_sink.cpp
index 8db57b45ff..e352a68d02 100644
--- a/be/src/exec/tablet_sink.cpp
+++ b/be/src/exec/tablet_sink.cpp
@@ -1000,6 +1000,11 @@ Status OlapTableSink::send(RuntimeState* state,
RowBatch* input_batch) {
continue;
}
uint32_t tablet_index = 0;
+ if (partition->num_buckets <= 0) {
+ std::stringstream ss;
+ ss << "num_buckets must be greater than 0, num_buckets=" <<
partition->num_buckets;
+ return Status::InternalError(ss.str());
+ }
if (findTabletMode != FindTabletMode::FIND_TABLET_EVERY_ROW) {
if (_partition_to_tablet_map.find(partition->id) ==
_partition_to_tablet_map.end()) {
tablet_index = _partition->find_tablet(tuple, *partition);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]