<?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 How to do python within sql query in Databricks ? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16019#M10244</link>
    <description>&lt;P&gt;Can anyone show me one use case how to do python within sql query ?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 22:52:09 GMT</pubDate>
    <dc:creator>Yagao</dc:creator>
    <dc:date>2022-06-28T22:52:09Z</dc:date>
    <item>
      <title>How to do python within sql query in Databricks ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16019#M10244</link>
      <description>&lt;P&gt;Can anyone show me one use case how to do python within sql query ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 22:52:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16019#M10244</guid>
      <dc:creator>Yagao</dc:creator>
      <dc:date>2022-06-28T22:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to do python within sql query in Databricks ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16020#M10245</link>
      <description>&lt;P&gt;Did you get any solution?  &lt;A href="https://www.mynordstrom.ltd/" alt="https://www.mynordstrom.ltd/" target="_blank"&gt;My Nordstrom Employee Portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 11:39:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16020#M10245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-06T11:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to do python within sql query in Databricks ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16021#M10246</link>
      <description>&lt;P&gt;Hi @Ya Gao​&amp;nbsp;and @Brooks foster​&amp;nbsp;! It seems like maybe you two are experiencing a similar need? I would love to know more about what you are trying to solve for - please comment below! And of course if you have made any progress since you posted, definitely let us know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime I am going to try and find a Databricks expert who has used Python in a SQL query for you!  &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 22:58:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16021#M10246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-06T22:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to do python within sql query in Databricks ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16022#M10247</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;spark.sql("select &amp;lt;Your Coumn&amp;gt; from &amp;lt;Your Table&amp;gt; ")
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 16:50:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16022#M10247</guid>
      <dc:creator>Dicer</dc:creator>
      <dc:date>2022-07-09T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to do python within sql query in Databricks ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16023#M10248</link>
      <description>&lt;P&gt;To run Python within a SQL query you have to first define a Python function and then register it as a UDF. Once that is done you are able to call that UDF within a SQL query. Please take a look at this documentation here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/spark/latest/spark-sql/udf-python.html#register-a-function-as-a-udf" target="test_blank"&gt;https://docs.databricks.com/spark/latest/spark-sql/udf-python.html#register-a-function-as-a-udf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 22:20:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16023#M10248</guid>
      <dc:creator>tomasz</dc:creator>
      <dc:date>2022-07-12T22:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to do python within sql query in Databricks ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16024#M10249</link>
      <description>&lt;P&gt;Hi @Ya Gao​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Did any of the responses help you to resolve your question? if it did, please mark it as best. Otherwise, please let us know if you still need help.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 23:12:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-do-python-within-sql-query-in-databricks/m-p/16024#M10249</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-07-29T23:12:31Z</dc:date>
    </item>
  </channel>
</rss>

