Skip to content

Commit cb4e8c5

Browse files
Lowered MapJoin threshold to avoid excessive broadcasts (#10288)
1 parent 6244583 commit cb4e8c5

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bool TKqpProviderContext::IsJoinApplicable(const std::shared_ptr<IBaseOptimizerN
165165
return IsLookupJoinApplicable(right, left, joinConditions, rightJoinKeys, leftJoinKeys, *this);
166166

167167
case EJoinAlgoType::MapJoin:
168-
return joinKind != EJoinKind::OuterJoin && joinKind != EJoinKind::Exclusion && right->Stats->ByteSize < 1e8;
168+
return joinKind != EJoinKind::OuterJoin && joinKind != EJoinKind::Exclusion && right->Stats->ByteSize < 1e6;
169169
case EJoinAlgoType::GraceJoin:
170170
return true;
171171
default:

ydb/core/kqp/ut/join/data/join_order/tpcds64_1000s.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"args":
2424
[
2525
{
26-
"op_name":"InnerJoin (MapJoin)",
26+
"op_name":"InnerJoin (Grace)",
2727
"args":
2828
[
2929
{
@@ -137,7 +137,7 @@
137137
"args":
138138
[
139139
{
140-
"op_name":"InnerJoin (MapJoin)",
140+
"op_name":"InnerJoin (Grace)",
141141
"args":
142142
[
143143
{
@@ -207,7 +207,7 @@
207207
"args":
208208
[
209209
{
210-
"op_name":"InnerJoin (MapJoin)",
210+
"op_name":"InnerJoin (Grace)",
211211
"args":
212212
[
213213
{
@@ -321,7 +321,7 @@
321321
"args":
322322
[
323323
{
324-
"op_name":"InnerJoin (MapJoin)",
324+
"op_name":"InnerJoin (Grace)",
325325
"args":
326326
[
327327
{

ydb/core/kqp/ut/join/data/join_order/tpcds64_1000s_column_store.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"args":
2424
[
2525
{
26-
"op_name":"InnerJoin (MapJoin)",
26+
"op_name":"InnerJoin (Grace)",
2727
"args":
2828
[
2929
{
@@ -137,7 +137,7 @@
137137
"args":
138138
[
139139
{
140-
"op_name":"InnerJoin (MapJoin)",
140+
"op_name":"InnerJoin (Grace)",
141141
"args":
142142
[
143143
{
@@ -207,7 +207,7 @@
207207
"args":
208208
[
209209
{
210-
"op_name":"InnerJoin (MapJoin)",
210+
"op_name":"InnerJoin (Grace)",
211211
"args":
212212
[
213213
{
@@ -321,7 +321,7 @@
321321
"args":
322322
[
323323
{
324-
"op_name":"InnerJoin (MapJoin)",
324+
"op_name":"InnerJoin (Grace)",
325325
"args":
326326
[
327327
{

ydb/core/kqp/ut/join/data/join_order/tpch2_1000s.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
]
3838
},
3939
{
40-
"op_name":"InnerJoin (MapJoin)",
40+
"op_name":"InnerJoin (Grace)",
4141
"args":
4242
[
4343
{

ydb/core/kqp/ut/join/data/join_order/tpch2_1000s_column_store.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
]
3838
},
3939
{
40-
"op_name":"InnerJoin (MapJoin)",
40+
"op_name":"InnerJoin (Grace)",
4141
"args":
4242
[
4343
{

0 commit comments

Comments
 (0)