Skip to content

Commit ba138ae

Browse files
Lowered threshold for MapJoin (#8147)
1 parent 76810ca commit ba138ae

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ bool TKqpProviderContext::IsJoinApplicable(const std::shared_ptr<IBaseOptimizerN
163163
return IsLookupJoinApplicable(right, left, joinConditions, rightJoinKeys, leftJoinKeys, *this);
164164

165165
case EJoinAlgoType::MapJoin:
166-
return joinKind != EJoinKind::OuterJoin && joinKind != EJoinKind::Exclusion && right->Stats->ByteSize < 5e8;
166+
return joinKind != EJoinKind::OuterJoin && joinKind != EJoinKind::Exclusion && right->Stats->ByteSize < 1e8;
167167
case EJoinAlgoType::GraceJoin:
168168
return true;
169169
default:

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"table":"test\/ds\/customer_address"
9090
},
9191
{
92-
"op_name":"InnerJoin (MapJoin)",
92+
"op_name":"InnerJoin (Grace)",
9393
"args":
9494
[
9595
{
@@ -273,7 +273,7 @@
273273
"table":"test\/ds\/customer_address"
274274
},
275275
{
276-
"op_name":"InnerJoin (MapJoin)",
276+
"op_name":"InnerJoin (Grace)",
277277
"args":
278278
[
279279
{

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"table":"test\/ds\/customer_address"
9090
},
9191
{
92-
"op_name":"InnerJoin (MapJoin)",
92+
"op_name":"InnerJoin (Grace)",
9393
"args":
9494
[
9595
{
@@ -273,7 +273,7 @@
273273
"table":"test\/ds\/customer_address"
274274
},
275275
{
276-
"op_name":"InnerJoin (MapJoin)",
276+
"op_name":"InnerJoin (Grace)",
277277
"args":
278278
[
279279
{

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"op_name":"InnerJoin (MapJoin)",
2+
"op_name":"InnerJoin (Grace)",
33
"args":
44
[
55
{
6-
"op_name":"InnerJoin (MapJoin)",
6+
"op_name":"InnerJoin (Grace)",
77
"args":
88
[
99
{
@@ -41,7 +41,7 @@
4141
"args":
4242
[
4343
{
44-
"op_name":"InnerJoin (MapJoin)",
44+
"op_name":"InnerJoin (Grace)",
4545
"args":
4646
[
4747
{

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"op_name":"InnerJoin (MapJoin)",
2+
"op_name":"InnerJoin (Grace)",
33
"args":
44
[
55
{
6-
"op_name":"InnerJoin (MapJoin)",
6+
"op_name":"InnerJoin (Grace)",
77
"args":
88
[
99
{
@@ -41,7 +41,7 @@
4141
"args":
4242
[
4343
{
44-
"op_name":"InnerJoin (MapJoin)",
44+
"op_name":"InnerJoin (Grace)",
4545
"args":
4646
[
4747
{

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"op_name":"InnerJoin (MapJoin)",
2+
"op_name":"InnerJoin (Grace)",
33
"args":
44
[
55
{
@@ -19,7 +19,7 @@
1919
"table":"lineitem"
2020
},
2121
{
22-
"op_name":"InnerJoin (MapJoin)",
22+
"op_name":"InnerJoin (Grace)",
2323
"args":
2424
[
2525
{

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"op_name":"InnerJoin (MapJoin)",
2+
"op_name":"InnerJoin (Grace)",
33
"args":
44
[
55
{
@@ -19,7 +19,7 @@
1919
"table":"lineitem"
2020
},
2121
{
22-
"op_name":"InnerJoin (MapJoin)",
22+
"op_name":"InnerJoin (Grace)",
2323
"args":
2424
[
2525
{

0 commit comments

Comments
 (0)