-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KQP] Added join algo hint without CBO (#10740)
- Loading branch information
1 parent
5bedea9
commit 215a87c
Showing
7 changed files
with
203 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
ydb/core/kqp/ut/join/data/queries/oltp_join_type_hint_cbo_turnoff.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PRAGMA TablePathPrefix='/Root'; | ||
PRAGMA ydb.OptimizerHints = | ||
' | ||
JoinType(R S Shuffle) | ||
JoinType(R S T Broadcast) | ||
JoinType(R S T U Shuffle) | ||
JoinType(R S T U V Broadcast) | ||
'; | ||
|
||
SELECT * FROM | ||
R INNER JOIN S on R.id = S.id | ||
INNER JOIN T on R.id = T.id | ||
INNER JOIN U on T.id = U.id | ||
INNER JOIN V on U.id = V.id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters