Skip to content

Commit 400a7b7

Browse files
committed
planner: support index_join_first() hint to prefer index join
1 parent 8833679 commit 400a7b7

File tree

9 files changed

+848
-706
lines changed

9 files changed

+848
-706
lines changed

pkg/parser/ast/misc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4102,7 +4102,7 @@ func (n *TableOptimizerHint) Restore(ctx *format.RestoreCtx) error {
41024102
}
41034103
// Hints without args except query block.
41044104
switch n.HintName.L {
4105-
case "mpp_1phase_agg", "mpp_2phase_agg", "hash_agg", "stream_agg", "agg_to_cop", "read_consistent_replica", "no_index_merge", "ignore_plan_cache", "limit_to_cop", "straight_join", "merge", "no_decorrelate":
4105+
case "mpp_1phase_agg", "mpp_2phase_agg", "hash_agg", "stream_agg", "agg_to_cop", "read_consistent_replica", "no_index_merge", "ignore_plan_cache", "limit_to_cop", "straight_join", "merge", "no_decorrelate", "index_join_first":
41064106
ctx.WritePlain(")")
41074107
return nil
41084108
}

0 commit comments

Comments
 (0)