<?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 Re: Using built-in SQL functions in Delta Live tables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/using-built-in-sql-functions-in-delta-live-tables/m-p/14205#M8738</link>
    <description>&lt;P&gt;Hi @Colt Kesselring​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 06:31:53 GMT</pubDate>
    <dc:creator>Vidula</dc:creator>
    <dc:date>2022-09-02T06:31:53Z</dc:date>
    <item>
      <title>Using built-in SQL functions in Delta Live tables</title>
      <link>https://community.databricks.com/t5/data-engineering/using-built-in-sql-functions-in-delta-live-tables/m-p/14202#M8735</link>
      <description>&lt;P&gt;Do Delta Live Tables have different built-in SQL functions than the corresponding Databricks runtime? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a cluster with Databricks runtime 10.3 (the current DLT runtime) so I could test my Delta Live Tables code before running it as a pipeline. I was able to use the built-in SQL functions split() and element_at() within my interactive workbook, but then when I tried to use them in a DLT run, the same code produced a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a reference guide for Delta Live Tables that shows the built-in functions (if different from the corresponding Databricks runtime built-in functions)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I ran was to split a file path to extract just the file name. It took a string like this:&lt;/P&gt;&lt;P&gt;"s3://example-bucket/folder/secondfolder/thirdfolder/b4618a0e-ffb8-11ec-9bbe-00163e43d8f1.json"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and extracted this:&lt;/P&gt;&lt;P&gt;"b4618a0e-ffb8-11ec-9bbe-00163e43d8f1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code, which works fine in interactive 10.3 runtime, but doesn't work in DLT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spark.sql("""&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp;&lt;/P&gt;&lt;P&gt;    element_at(split(element_at(split(file_name, '/'), -1), '\\.'), 1) as file_guid,&lt;/P&gt;&lt;P&gt;    * &lt;/P&gt;&lt;P&gt;FROM my_tablename""")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 19:28:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-built-in-sql-functions-in-delta-live-tables/m-p/14202#M8735</guid>
      <dc:creator>colt</dc:creator>
      <dc:date>2022-07-09T19:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using built-in SQL functions in Delta Live tables</title>
      <link>https://community.databricks.com/t5/data-engineering/using-built-in-sql-functions-in-delta-live-tables/m-p/14204#M8737</link>
      <description>&lt;P&gt;&lt;A href="https://databricks.com/discover/pages/getting-started-with-delta-live-tables" alt="https://databricks.com/discover/pages/getting-started-with-delta-live-tables" target="_blank"&gt;https://databricks.com/discover/pages/getting-started-with-delta-live-tables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 09:19:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-built-in-sql-functions-in-delta-live-tables/m-p/14204#M8737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-19T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using built-in SQL functions in Delta Live tables</title>
      <link>https://community.databricks.com/t5/data-engineering/using-built-in-sql-functions-in-delta-live-tables/m-p/14205#M8738</link>
      <description>&lt;P&gt;Hi @Colt Kesselring​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 06:31:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-built-in-sql-functions-in-delta-live-tables/m-p/14205#M8738</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-02T06:31:53Z</dc:date>
    </item>
  </channel>
</rss>

