Skip to content

feat: add updatefunction command - #388

Draft
annguy3n wants to merge 1 commit into
udf/09-createfunction-sqlfrom
udf/10-updatefunction-wasm
Draft

annguy3n wants to merge 1 commit into
udf/09-createfunction-sqlfrom
udf/10-updatefunction-wasm

Conversation

@annguy3n

Copy link
Copy Markdown
  • Adds cbt updatefunction <function-id> [wasm-file=<path>] [args=...] [return-type=...] [deletion-protection=<true|false>] [etag=<etag>].
  • Sends an update mask containing exactly the supplied fields. deletion-protection alone sends no function type.
  • args or return-type without wasm-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-protection and etag apply 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 and go.mod is bumped.

@annguy3n
annguy3n added this pull request to stack #391 November 19, 2026 01:07
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
annguy3n force-pushed the udf/10-updatefunction-wasm branch from 66dbffb to 295cdeb Compare November 23, 2026 23:12
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.

2 participants