Repository navigation
Conversation
… and peeks call into them
…LE, and DROP FUNCTION
DAlperin
added this pull request to stack #39800
October 13, 2026 17:14
This branch has not been deployed
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.
The user-facing surface, behind
enable_wasm_functions(off in production,on in CI).
SQL:
CREATE WASM MODULE, rename, owner, grants, comments, default privilegesCREATE FUNCTION ... LANGUAGE wasm USING MODULEbinds an exportDROP FUNCTION f(types)Privileges:
CREATEWASMMODULEsystem privilege to upload a moduleUSAGEon a module to bind itUSAGEon a function's schema to call itCatalog and introspection:
mz_wasm_modules, and user functions inmz_functionsandpg_procChecks run at sequencing, not planning, so stricter validators or lower
limits never stop a catalog from opening.
Modules are installed only on the compute instances whose dataflows or peeks
call them. Offloaded peeks pin the modules they use. environmentd validates
modules but never compiles or runs them.
Tests
src/environmentd/tests/wasm_udf.rs: end to end, including restart,validation and privileges.
Release notes
None. Behind
enable_wasm_functions, which is off in production.Generated with Claude Code