Sabtout
New Contributor II

Hi @Retired_mod 

I ran this SQL query in my Catalog (I'm using Unity Catalog) :

CREATE OR REPLACE FUNCTION cat_projint_dev.silver.GetEditor(prompt STRING)

RETURNS STRING

LANGUAGE PYTHON

AS $$

print(prompt)

$$
 
Then I ran a Delta Live Table workflow using Unity Catalog plugged in my silver catalog like this :

@dlt.table(name="editors_bronze", temporary = True)

def editors_bronze():

    return spark.sql("SELECT prompt,cat_projint_dev.bronze.GetEditor(prompt) AS EDITOR_NAME FROM LIVE.editors_temp_bronze")
 
And then I'm having this issue :
[FEATURE_UNAVAILABLE] Python UDF is not supported in your environment. To use this feature, please contact Databricks Support.
 
Thank you for your help ! 🙂