{"record":{"id":"1fe4f3f2b6519e4a","repo":"dbt-labs/dbt-core","slug":"entry-point-is-accepted-for-compatibility-but-ha","errorCode":null,"errorMessage":"'entry_point' is accepted for compatibility but has no effect on Databricks Python UDFs. The function body is used directly.","messagePattern":"'entry_point' is accepted for compatibility but has no effect on Databricks Python UDFs\\. The function body is used directly\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-loader/src/dbt_macro_assets/dbt-databricks/macros/materializations/functions/scalar.sql","lineNumber":34,"sourceCode":"    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":16,"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#L16-L39","documentation":"Compatibility warning from databricks__scalar_function_python: the model config sets `entry_point`, which is accepted for parity with other adapters but has no effect because Databricks Python UDFs use the compiled function body directly rather than an entry point. Purely informational; creation proceeds.","triggerScenarios":"Thrown at crates/dbt-loader/src/dbt_macro_assets/dbt-databricks/macros/materializations/functions/scalar.sql:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove `entry_point` from the model config to silence the warning","Leave it in place if the config is shared with adapters that need it — it is ignored on Databricks","Do not expect it to change how the UDF body is invoked"],"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"}