cockroachdb / cockroachdb/cockroach
opt: match scalar plangram expressions
Open
A-plan-management
A-statement-hint
C-enhancement
T-sql-queries
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
(Breaking this out from https://github.com/cockroachdb/cockroach/issues/152053.)
PlanGrams can describe both relational and scalar optimizer expressions. The optimizer currently only checks whether relational expressions match PlanGrams. We should teach the optimizer to also check whether scalar expressions match PlanGrams.
This will help with testing, and is also necessary to support PlanGram matching of subqueries in scalar contexts.
Jira issue: CRDB-65318
Epic: CRDB-66266
Contributor guide
Assessment
This issue has not been assessed yet.