This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 5e7ad9b499b [fix](sink) clear filter bitmap per batch to get the
correct filtered rows (#25985)
5e7ad9b499b is described below
commit 5e7ad9b499b713d69a825047dcf638ba4d28fef0
Author: Siyang Tang <[email protected]>
AuthorDate: Thu Oct 26 22:03:35 2023 +0800
[fix](sink) clear filter bitmap per batch to get the correct filtered rows
(#25985)
---
be/src/vec/sink/vtablet_sink.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/vec/sink/vtablet_sink.cpp b/be/src/vec/sink/vtablet_sink.cpp
index 88b85e24e2a..8d384469d30 100644
--- a/be/src/vec/sink/vtablet_sink.cpp
+++ b/be/src/vec/sink/vtablet_sink.cpp
@@ -1331,7 +1331,8 @@ Status VOlapTableSink::send(RuntimeState* state,
vectorized::Block* input_block,
int filtered_rows = 0;
{
SCOPED_RAW_TIMER(&_validate_data_ns);
- _filter_bitmap.resize(block.rows());
+ _filter_bitmap.clear();
+ _filter_bitmap.resize(block.rows(), 0);
bool stop_processing = false;
RETURN_IF_ERROR(
_validate_data(state, &block, _filter_bitmap, &filtered_rows,
&stop_processing));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]