-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add udfs to vschema on update #15771
Conversation
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15771 +/- ##
==========================================
+ Coverage 68.40% 68.41% +0.01%
==========================================
Files 1556 1556
Lines 195418 195425 +7
==========================================
+ Hits 133666 133701 +35
+ Misses 61752 61724 -28 ☔ View full report in Codecov by Sentry. |
return nil | ||
}) | ||
if err != nil { | ||
log.Errorf("error fetching new UDFs for %v: %w", target.Keyspace, err) | ||
return err | ||
} | ||
log.Infof("finished loading UDFs for keyspace %s", target.Keyspace) | ||
t.udfs[target.Keyspace] = udfs | ||
log.Infof("finished loading %d UDFs for keyspace %s", len(udfs), target.Keyspace) |
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.
How often will we be logging this?
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.
On VTGate start and whenever there is a change in UDFs
Description
This PR adds UDFs to the VSchema on receiving an update from the vttablet.
Related Issue(s)
Checklist