Proposal: introduce system variable to ignore hash join in TiDB #46695
Labels
affects-6.5
affects-7.1
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Background
It makes sense we introduce the mechanism to control this optimizer behavior at session or cluster level.
User case
Functional Specification
Introduce variable to disable hash join in session/global
Behavior
It’s not acceptable SQL fails caused by optimizer variable changes, as the scope of variables is wide. We have to avoid no available plan because of this variable.
In this case, we shall keep the hints working and ignore the behavior change caused by this variable. Query still generates a plan with hash_join, and appends messages to warnings.
The text was updated successfully, but these errors were encountered: