News

Snowflake makes SQL tools for deploying custom AI functions generally available

With Snowflake’s DCM Projects, teams can reuse a function definition across environments and preview what each deployment would change.

D
Dec 3, 2026 · 2 min read

Snowflake made two commands for deploying user-defined AI functions generally available. Teams can create or update a function with CREATE OR ALTER AI FUNCTION in SQL, or manage the definition across environments with DEFINE AI FUNCTION in Snowflake’s Database Change Management (DCM) Projects.

The standalone statement creates a function if none in the target schema has the same name and argument types. If it finds a match, it brings the function into line with the statement. Snowflake says the command can change the function body, including the model it calls, the return type or the comment.

With DEFINE AI FUNCTION, teams can reuse a definition file across environments, each with its own project and settings. PLAN previews changes without applying them. At deployment, DEPLOY compares the definitions with the current target again. It creates missing functions, updates those that differ, skips matches and can drop a previously managed function if teams remove its definition without first detaching it from the project.

Both commands support functions written as a single SQL expression that returns one value per input row. Snowflake shows how to define a function that calls Cortex AI_COMPLETE and returns text. The scope excludes table returns and non-SQL handlers.

Snowflake lists DCM Projects as available on all editions and charges for the compute used by project operations. The SQL reference lists CREATE FUNCTION on the schema to create a function and OWNERSHIP on the existing function to alter it. Snowflake meters AI inference separately from the compute that runs the query.

Snowflake’s SQL reference lists USAGE on the database and schema to call the custom function and SNOWFLAKE.CORTEX_USER to run the AI calls in its body. The model must be authorized for the account and accessible from its region. For some models, Snowflake lets accounts run inference across regions.

More news