-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Conversation
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. |
There was a problem hiding this 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:complete! 0 of 0 LGTMs obtained (waiting on @chengxiong-ruan and @cucaroach)
acef311
to
3004806
Compare
TFTR! bors r+ |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed: |
28c0060
to
7c44c96
Compare
`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
7c44c96
to
ddb8efb
Compare
bors r+ |
Build failed (retrying...): |
Build failed (retrying...): |
Build failed (retrying...): |
Build succeeded: |
sql: remove FuncExpr.IsGeneratorApplication
FuncExpr.IsGeneratorApplication
has been removed and its single usagehas been replaced with with
FuncExpr.IsGeneratorClass
.Release note: None
sql: move FunctionClass from FunctionProperties to Overload
FunctionProperties
are attached to aFunctionDefinition
, which issimply a collection of overloads that share the same name. Most of the
fields in
FunctionProperties
are, however, overload-specific. Theyshould 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