-
Notifications
You must be signed in to change notification settings - Fork 4.1k
opt: plan lookup anti-, semi-, and left joins on indexes with virtual columns #75873
Copy link
Copy link
Closed
Closed
Copy link
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries TeamSQL Queries Team
Description
We don't currently plan lookup anti-, semi-, and left joins on indexes with virtual columns:
cockroach/pkg/sql/opt/xform/rules/join.opt
Lines 215 to 216 in 5fd739b
| # TODO(mgartner): Generate lookup joins with virtual columns for semi- and | |
| # anti-joins. This may also be possible for left joins, but could be tricky. |
Planning anti- and semi-joins will depend on #75872, because decorrelation rules end up making projections of virtual column expressions with column IDs that do not match virtual column IDs in table metadata.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries TeamSQL Queries Team
Type
Projects
Status
Done