Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: make builtin generators with GeneratorWithExprs safer #70699

Merged

Conversation

mgartner
Copy link
Collaborator

The Overload.GeneratorWithExprs field was added in #70115. This commit
makes usage of this field safer by introducing the IsGenerator method
which can be used to determine if an overload is an SRF. This commit
also adds guardrails to prevent future issues with
GeneratorWithExprsin the ConvertZipArraysToValues normalization rule.

Release note: None

The `Overload.GeneratorWithExprs` field was added in cockroachdb#70115. This commit
makes usage of this field safer by introducing the `IsGenerator` method
which can be used to determine if an overload is an SRF. This commit
also adds guardrails to prevent future issues with
`GeneratorWithExprs`in the `ConvertZipArraysToValues` normalization rule.

Release note: None
@mgartner mgartner requested review from jordanlewis and a team September 24, 2021 17:07
@mgartner mgartner requested a review from a team as a code owner September 24, 2021 17:07
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @mgartner)

@mgartner
Copy link
Collaborator Author

TFTRs!

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 24, 2021

Build succeeded:

@craig craig bot merged commit 8452194 into cockroachdb:master Sep 24, 2021
@mgartner mgartner deleted the minor-generator-with-exprs-improvements branch September 27, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants