cockroachdb / cockroachdb/cockroach

opt: match scalar plangram expressions

Open
#172,172 2 comments 0 reactions 1 assignee Claimed by @michae2 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.