You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/09/21 17:35:10 UTC
[doris] 01/08: [fix](intersect) fix intersect query failed in row storage code (#12712)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 0f494e9a7715c61fb73e5735e10235642896577e
Author: luozenglin <37...@users.noreply.github.com>
AuthorDate: Mon Sep 19 11:47:50 2022 +0800
[fix](intersect) fix intersect query failed in row storage code (#12712)
---
be/src/exec/set_operation_node.cpp | 8 --------
be/src/exec/set_operation_node.h | 1 -
2 files changed, 9 deletions(-)
diff --git a/be/src/exec/set_operation_node.cpp b/be/src/exec/set_operation_node.cpp
index 73557ec8b2..0de8d51858 100644
--- a/be/src/exec/set_operation_node.cpp
+++ b/be/src/exec/set_operation_node.cpp
@@ -55,14 +55,6 @@ Status SetOperationNode::prepare(RuntimeState* state) {
}
_build_tuple_size = child(0)->row_desc().tuple_descriptors().size();
_build_tuple_row_size = _build_tuple_size * sizeof(Tuple*);
- _build_tuple_idx.reserve(_build_tuple_size);
-
- for (int i = 0; i < _build_tuple_size; ++i) {
- TupleDescriptor* build_tuple_desc = child(0)->row_desc().tuple_descriptors()[i];
- auto tuple_idx = _row_descriptor.get_tuple_idx(build_tuple_desc->id());
- RETURN_IF_INVALID_TUPLE_IDX(build_tuple_desc->id(), tuple_idx);
- _build_tuple_idx.push_back(tuple_idx);
- }
_find_nulls = std::vector<bool>();
for (auto ctx : _child_expr_lists[0]) {
_find_nulls.push_back(!ctx->root()->is_slotref() || ctx->is_nullable());
diff --git a/be/src/exec/set_operation_node.h b/be/src/exec/set_operation_node.h
index 9fbb5d75df..65b07f370b 100644
--- a/be/src/exec/set_operation_node.h
+++ b/be/src/exec/set_operation_node.h
@@ -71,7 +71,6 @@ protected:
// holds everything referenced in _hash_tbl
std::unique_ptr<MemPool> _build_pool;
- std::vector<int> _build_tuple_idx;
int _build_tuple_size;
int _build_tuple_row_size;
std::vector<bool> _find_nulls;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org