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: refactor FunctionProperties and Overload #96126

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

mgartner
Copy link
Collaborator

sql: remove FuncExpr.IsGeneratorApplication

FuncExpr.IsGeneratorApplication has been removed and its single usage
has been replaced with with FuncExpr.IsGeneratorClass.

Release note: None

sql: move FunctionClass from FunctionProperties to Overload

FunctionProperties are attached to a FunctionDefinition, which is
simply a collection of overloads that share the same name. Most of the
fields in FunctionProperties are, however, overload-specific. They
should be moved to the Overload struct. In the long-term,
the hierarchy of function definitions, each with child function overloads,
should be flattened to a just overloads.

This commit takes one step in this direction.

Epic: CRDB-20370

Release note: None

@mgartner mgartner requested review from a team as code owners January 27, 2023 21:54
@mgartner mgartner requested a review from a team January 27, 2023 21:54
@mgartner mgartner requested a review from a team as a code owner January 27, 2023 21:54
@mgartner mgartner requested review from cucaroach and HonoreDB and removed request for a team January 27, 2023 21:54
@blathers-crl
Copy link

blathers-crl bot commented Jan 27, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@HonoreDB HonoreDB left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, 16 of 18 files at r2, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @chengxiong-ruan and @cucaroach)

@mgartner mgartner force-pushed the func-class-refactor branch from acef311 to 3004806 Compare January 30, 2023 20:59
@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jan 31, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 31, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jan 31, 2023

Build failed:

@mgartner mgartner force-pushed the func-class-refactor branch 2 times, most recently from 28c0060 to 7c44c96 Compare January 31, 2023 20:07
`FuncExpr.IsGeneratorApplication` has been removed and its single usage
has been replaced with with `FuncExpr.IsGeneratorClass`.

Release note: None
`FunctionProperties` are attached to a `FunctionDefinition`, which is
simply a collection of overloads that share the same name. Most of the
fields in `FunctionProperties` are, however, overload-specific. They
should be moved to the `Overload` struct. In the long-term,
the hierarchy of function definitions, each with child function overloads,
should be flattened to a just overloads.

This commit takes one step in this direction.

Epic: CRDB-20370

Release note: None
@mgartner mgartner force-pushed the func-class-refactor branch from 7c44c96 to ddb8efb Compare January 31, 2023 21:43
@mgartner
Copy link
Collaborator Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 1, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 1, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 1, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 1, 2023

Build succeeded:

@craig craig bot merged commit 8b35f22 into cockroachdb:master Feb 1, 2023
@mgartner mgartner deleted the func-class-refactor branch February 1, 2023 14:05
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.

3 participants