Skip to main content

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 Python UDFs

Definition

When creating Python UDFs, specify the Python version to run in runtime_version.

Supported values

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"

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0