-
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: add eventlog for UDF relevant statements #88304
sql: add eventlog for UDF relevant statements #88304
Conversation
pkg/sql/alter_function.go
Outdated
} | ||
event := eventpb.AlterFunctionOptions{ | ||
FunctionName: fnName.FQString(), | ||
Options: fctx.CloseAndGetString(), |
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.
adding alter function
details here is probably a overkill....
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.
the event log json records the whole statement, so no need to book keeping redundant option details
82bff78
to
f62b44b
Compare
Why are there no tests? |
oops, my bad, adding it now |
67b7741
to
355373b
Compare
@postamar logic tests added |
355373b
to
791b2c0
Compare
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.
This LGTM but I don't have strong opinions about ddl event logging so you might want to solicit another review from someone who does.
shipping it anyway. don't think it'd be a big deal as long as the event type are clear, desc id and ddl statement are well recorded. |
Build failed: |
Backport addresses cockroachdb#86058. Release note: None Release justification: low risk GA blocker
791b2c0
to
9f36dad
Compare
bors r+ |
Build succeeded: |
Backport addresses #86058.
Release note: None
Release justification: low risk GA blocker