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 14213f7a704 [fix](set) fix possible bug of intersect with expression
calculation (#36504)
14213f7a704 is described below
commit 14213f7a704fbabf669bef326369e6f244136a61
Author: TengJianPing <[email protected]>
AuthorDate: Wed Jun 19 12:24:51 2024 +0800
[fix](set) fix possible bug of intersect with expression calculation
(#36504)
Issue Number: introduced by #36401
---
be/src/vec/exec/vset_operation_node.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/be/src/vec/exec/vset_operation_node.cpp
b/be/src/vec/exec/vset_operation_node.cpp
index cdee3842143..8e30a3eb5f8 100644
--- a/be/src/vec/exec/vset_operation_node.cpp
+++ b/be/src/vec/exec/vset_operation_node.cpp
@@ -503,9 +503,9 @@ void
VSetOperationNode<is_intersect>::add_result_columns(RowRefListWithFlags& va
auto it = value.begin();
for (auto idx = _build_col_idx.begin(); idx != _build_col_idx.end();
++idx) {
const auto& column =
*_build_blocks[it->block_offset].get_by_position(idx->second).column;
- if (_mutable_cols[idx->second]->is_nullable() xor
column.is_nullable()) {
- if (_mutable_cols[idx->second]->is_nullable()) {
- ((ColumnNullable*)(_mutable_cols[idx->second].get()))
+ if (_mutable_cols[idx->first]->is_nullable() xor column.is_nullable())
{
+ if (_mutable_cols[idx->first]->is_nullable()) {
+ ((ColumnNullable*)(_mutable_cols[idx->first].get()))
->insert_from_not_nullable(column, it->row_num);
} else {
auto& nest_col = ((ColumnNullable&)column).get_nested_column();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]