Repository navigation
Conversation
Adds cbt updatefunction, which sends an update mask built from the supplied options: wasm-file, args, return-type and deletion-protection, with an optional etag. Only a WASM source can be replaced; body= is rejected as an unknown option. deletion-protection and etag apply to functions of either kind.
annguy3n
force-pushed
the
udf/10-updatefunction-wasm
branch
from
November 23, 2026 23:12
66dbffb to
295cdeb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cbt updatefunction <function-id> [wasm-file=<path>] [args=...] [return-type=...] [deletion-protection=<true|false>] [etag=<etag>].deletion-protectionalone sends no function type.argsorreturn-typewithoutwasm-file, and an etag with nothing to update, are rejected before any RPC.Reviewer notes: only a WASM source can be replaced here; SQL bodies arrive in PR 11.
deletion-protectionandetagapply to functions of either kind. The update-mask tests are the ones to read closely, since a wrong mask silently overwrites fields.Stack: 10 of 12. Original implementation by @shantstepanian in #373; this stack re-slices that change into reviewable pieces.
Draft: the Function admin messages and RPCs are not yet in a released
cloud.google.com/go/bigtable, so this does not build against the public module. It was built and tested against locally generated admin protos. The stack leaves draft once a module release includes them andgo.modis bumped.