<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using Python UDF in Delta live table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/using-python-udf-in-delta-live-table/m-p/45235#M27824</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried running a python UDF in a Delta Live Table workflow in Advanced mode but it did not run and gave the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"&lt;I&gt;Python UDF is not supported in your environment&lt;/I&gt;"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;error.&lt;/P&gt;&lt;P&gt;Can I get a clear picture if the Python External UDFs are supported or not?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 12:32:34 GMT</pubDate>
    <dc:creator>Sabtout</dc:creator>
    <dc:date>2023-09-18T12:32:34Z</dc:date>
    <item>
      <title>Using Python UDF in Delta live table</title>
      <link>https://community.databricks.com/t5/data-engineering/using-python-udf-in-delta-live-table/m-p/45235#M27824</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried running a python UDF in a Delta Live Table workflow in Advanced mode but it did not run and gave the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;"&lt;I&gt;Python UDF is not supported in your environment&lt;/I&gt;"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;error.&lt;/P&gt;&lt;P&gt;Can I get a clear picture if the Python External UDFs are supported or not?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 12:32:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-python-udf-in-delta-live-table/m-p/45235#M27824</guid>
      <dc:creator>Sabtout</dc:creator>
      <dc:date>2023-09-18T12:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python UDF in Delta live table</title>
      <link>https://community.databricks.com/t5/data-engineering/using-python-udf-in-delta-live-table/m-p/45245#M27829</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran this SQL query in my Catalog (I'm using Unity Catalog) :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt; &lt;SPAN&gt;OR&lt;/SPAN&gt; &lt;SPAN&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN&gt;FUNCTION&lt;/SPAN&gt;&lt;SPAN&gt; cat_projint_dev.silver.GetEditor(prompt &lt;/SPAN&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURNS&lt;/SPAN&gt; &lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LANGUAGE&lt;/SPAN&gt; &lt;SPAN&gt;PYTHON&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt; &lt;SPAN&gt;$$&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print(prompt)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;$$&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I ran a Delta Live Table workflow using Unity Catalog plugged in my silver catalog like this :&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;@dlt&lt;/SPAN&gt;&lt;SPAN&gt;.table(name=&lt;/SPAN&gt;&lt;SPAN&gt;"editors_bronze"&lt;/SPAN&gt;&lt;SPAN&gt;, temporary = &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def&lt;/SPAN&gt;&lt;SPAN&gt; editors_bronze():&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; spark.&lt;/SPAN&gt;&lt;SPAN&gt;sql(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&amp;nbsp;prompt&lt;SPAN&gt;,cat_projint_dev.bronze.GetEditor(prompt) &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; EDITOR_NAME &lt;/SPAN&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt; &lt;SPAN&gt;LIVE&lt;/SPAN&gt;&lt;SPAN&gt;.editors_temp_bronze&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And then I'm having this issue :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;[FEATURE_UNAVAILABLE] Python UDF is not supported in your environment. To use this feature, please contact Databricks Support.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for your help ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:13:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-python-udf-in-delta-live-table/m-p/45245#M27829</guid>
      <dc:creator>Sabtout</dc:creator>
      <dc:date>2023-09-18T15:13:55Z</dc:date>
    </item>
  </channel>
</rss>

