runtime_version
💡Did you know...
Available from dbt v1.11 or with the dbt "Latest" release track.
functions/<filename>.yml
functions:
- name: <function name>
config:
runtime_version: <string> # required for Snowflake and BigQuery; optional and ignored on Databricks
Definition
When creating Python UDFs, specify the Python version to run in runtime_version.
Supported values
- Snowflake:
3.10,3.11,3.12, and3.13 - BigQuery:
3.11 - Databricks: Accepted for compatibility but has no effect. Databricks manages the Python runtime internally, so dbt displays a warning if you set it. Available in
dbt-databricksv1.12+.
Example
In this example, we're using the Python version 3.11 for the UDF.
functions/schema.yml
functions:
- name: is_positive_int
config:
runtime_version: "3.11"
Related documentation
- User-defined functions
- Function properties
- Function configurations
- type
- volatility
- entry_point
- packages
- arguments
- returns
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0