Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion be/src/vec/exec/join/vhash_join_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ void HashJoinNode::_hash_table_init(RuntimeState* state) {
}

auto is_null = data_type->is_nullable();
has_null |= is_null;
has_null |= is_null || _should_convert_build_side_to_nullable[i];
_build_key_sz[i] =
data_type->get_maximum_size_of_value_in_memory() - (is_null ? 1 : 0);
_probe_key_sz[i] = _build_key_sz[i];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,11 @@
2 111 111
3 1111 1111

-- !sql30 --
1 11 11 1 11 11
2 111 111 4 111 111
2 111 111 2 111 111
3 1111 1111 3 1111 1111
4 \N \N \N \N \N
5 1111 1111 3 1111 1111

Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,13 @@ suite("test_half_join_nullable_build_side", "query,p0") {
test_half_join_nullable_build_side_l2 l right semi join test_half_join_nullable_build_side_r2 r on l.v2 = r.v2
order by 1, 2, 3;
"""

qt_sql30 """
select
*
from
test_half_join_nullable_build_side_l2 l
left join test_half_join_nullable_build_side_l r on l.v2 <=> r.v2
order by 1, 2, 3, 4 desc;
"""
}