{"record":{"id":"b514f4cf19330823","repo":"dbt-labs/dbt-core","slug":"runtime-version-is-accepted-for-compatibility-bu","errorCode":null,"errorMessage":"'runtime_version' is accepted for compatibility but has no effect on Databricks Python UDFs. Databricks manages the Python runtime internally.","messagePattern":"'runtime_version' is accepted for compatibility but has no effect on Databricks Python UDFs\\. Databricks manages the Python runtime internally\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-loader/src/dbt_macro_assets/dbt-databricks/macros/materializations/functions/scalar.sql","lineNumber":31,"sourceCode":"{% macro databricks__scalar_function_create_replace_signature_python(target_relation) %}\n    CREATE OR REPLACE FUNCTION {{ target_relation.render() }} ({{ formatted_scalar_function_args_sql() }})\n    RETURNS {{ model.returns.data_type }}\n    LANGUAGE PYTHON\n    AS\n{% endmacro %}\n\n{# Python UDF body macro - uses dollar-quoting #}\n{% macro databricks__scalar_function_body_python() %}\n$$\n{{ model.compiled_code }}\n$$\n{% endmacro %}\n\n{# Main Python UDF macro - combines signature and body #}\n{% macro databricks__scalar_function_python(target_relation) %}\n    {#- Warn if user explicitly provided no-op config fields -#}\n    {%- if model.config.get('runtime_version') -%}\n        {{ exceptions.warn(\"'runtime_version' is accepted for compatibility but has no effect on Databricks Python UDFs. Databricks manages the Python runtime internally.\") }}\n    {%- endif -%}\n    {%- if model.config.get('entry_point') -%}\n        {{ exceptions.warn(\"'entry_point' is accepted for compatibility but has no effect on Databricks Python UDFs. The function body is used directly.\") }}\n    {%- endif -%}\n    {{ databricks__scalar_function_create_replace_signature_python(target_relation) }}\n    {{ databricks__scalar_function_body_python() }}\n{% endmacro %}\n","sourceCodeStart":13,"sourceCodeEnd":39,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-loader/src/dbt_macro_assets/dbt-databricks/macros/materializations/functions/scalar.sql#L13-L39","documentation":"Compatibility warning from databricks__scalar_function_python: the model config sets `runtime_version`, which dbt-databricks accepts for cross-adapter compatibility, but Databricks manages the Python runtime for Python UDFs internally so the setting has no effect. Purely informational; compilation and UDF creation proceed.","triggerScenarios":"Thrown at crates/dbt-loader/src/dbt_macro_assets/dbt-databricks/macros/materializations/functions/scalar.sql:31 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove `runtime_version` from the model config to silence the warning","Leave it in place if the config is shared with adapters that use it — it is harmless on Databricks","Do not expect it to change the Python version of the UDF"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}