This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new ea34cb02d62 [chore](sink) remove `load_block_to_single_tablet` flag in
sink (#34569)
ea34cb02d62 is described below
commit ea34cb02d62eb2d3391e2c0c6f89d9a57c892bcd
Author: lihangyu <[email protected]>
AuthorDate: Thu May 9 12:00:38 2024 +0800
[chore](sink) remove `load_block_to_single_tablet` flag in sink (#34569)
---
be/src/vec/sink/vtablet_sink.cpp | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/be/src/vec/sink/vtablet_sink.cpp b/be/src/vec/sink/vtablet_sink.cpp
index 862c8dae7e2..12a822f3ba0 100644
--- a/be/src/vec/sink/vtablet_sink.cpp
+++ b/be/src/vec/sink/vtablet_sink.cpp
@@ -1389,28 +1389,6 @@ Status VOlapTableSink::send(RuntimeState* state,
vectorized::Block* input_block,
}
}
_row_distribution_watch.stop();
- // Random distribution and the block belongs to a single tablet, we could
optimize to append the whole
- // block into node channel.
- bool load_block_to_single_tablet =
- !_schema->is_dynamic_schema() && _partition_to_tablet_map.size()
== 1;
- if (load_block_to_single_tablet) {
- SCOPED_RAW_TIMER(&_filter_ns);
- // clear and release the references of columns
- input_block->clear();
- // Filter block
- if (filtered_rows > 0) {
- auto filter = vectorized::ColumnUInt8::create(block.rows(), 0);
- vectorized::UInt8* filter_data =
-
static_cast<vectorized::ColumnUInt8*>(filter.get())->get_data().data();
- vectorized::IColumn::Filter& filter_col =
-
static_cast<vectorized::ColumnUInt8*>(filter.get())->get_data();
- for (size_t i = 0; i < filter_col.size(); ++i) {
- filter_data[i] = !_filter_bitmap[i];
- }
- RETURN_IF_CATCH_EXCEPTION(
- vectorized::Block::filter_block_internal(&block,
filter_col, block.columns()));
- }
- }
// Add block to node channel
for (size_t i = 0; i < _channels.size(); i++) {
for (const auto& entry : channel_to_payload[i]) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]