Join Optimization
Inspect the query plan and profile before changing a join. For compatible bucketed tables, Colocation Join can avoid redistributing join inputs. If the optimizer chooses an unsuitable distribution method or join order, test Distribute and Leading hints against the same workload and compare the resulting plans and profiles.
Colocation
Tune joins with hints
Adjust Join Distribution with Hints
Use the [shuffle] and [broadcast] Distribute Hints to override the optimizer's choice of data distribution for the right table of a Join, and manually tune for specific scenarios.
Control Join Order with Leading Hint
When the Join order chosen by the CBO is suboptimal, use Leading Hint to manually specify the multi-table Join order, supporting various shapes such as left-deep tree, right-deep tree, and bushy tree.