Skip to content

use SEMI_JOIN_REWRITE to control the exists/in's behavior #35323

Closed
@winoros

Description

Enhancement

Previously, we have the session variable tidb_opt_insubq_to_join_and_agg to control the in subquery's behavior. But the variable is not very suitable for SPM.

And that variable only controls the IN subquery. It doesn't handle the EXISTS because we need to decorrelated first then check whether we can rewrite the semi join.

This time, we introduce the hint to control its behavior.

Metadata

Assignees

Labels

affects-6.1This bug affects the 6.1.x(LTS) versions.sig/plannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions