Skip to content

Commit 73b534d

Browse files
authored
Merge branch 'master' into 200413
2 parents 143ed26 + 8be0c27 commit 73b534d

File tree

11 files changed

+5562
-5365
lines changed

11 files changed

+5562
-5365
lines changed

ast/misc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ func (n *TableOptimizerHint) Restore(ctx *format.RestoreCtx) error {
25972597
ctx.WritePlainf("%d", n.HintData.(uint64))
25982598
case "nth_plan":
25992599
ctx.WritePlainf("%d", n.HintData.(int64))
2600-
case "tidb_hj", "tidb_smj", "tidb_inlj", "hash_join", "merge_join", "inl_join":
2600+
case "tidb_hj", "tidb_smj", "tidb_inlj", "hash_join", "merge_join", "inl_join", "broadcast_join", "broadcast_join_local":
26012601
for i, table := range n.Tables {
26022602
if i != 0 {
26032603
ctx.WritePlain(", ")

ast/misc_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ func (ts *testMiscSuite) TestTableOptimizerHintRestore(c *C) {
232232
{"TIDB_HJ(@sel1 t1,t2)", "TIDB_HJ(@`sel1` `t1`, `t2`)"},
233233
{"TIDB_HJ(t1@sel1,t2@sel2)", "TIDB_HJ(`t1`@`sel1`, `t2`@`sel2`)"},
234234
{"MERGE_JOIN(t1,t2)", "MERGE_JOIN(`t1`, `t2`)"},
235+
{"BROADCAST_JOIN(t1,t2)", "BROADCAST_JOIN(`t1`, `t2`)"},
235236
{"INL_JOIN(t1,t2)", "INL_JOIN(`t1`, `t2`)"},
236237
{"HASH_JOIN(t1,t2)", "HASH_JOIN(`t1`, `t2`)"},
237238
{"MAX_EXECUTION_TIME(3000)", "MAX_EXECUTION_TIME(3000)"},

0 commit comments

Comments
 (0)