<?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: Input File Path from Autoloader in Delta Live Tables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/input-file-path-from-autoloader-in-delta-live-tables/m-p/3980#M841</link>
    <description>&lt;P&gt;Hi @Parsa Bahraminejad​&amp;nbsp;, I'm not sure of an inbuilt function to get the sub directory name but you can easily do this by using split function on '/' on the input_file_name() as the file name will have the complete path as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps. &lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 07:24:21 GMT</pubDate>
    <dc:creator>pvignesh92</dc:creator>
    <dc:date>2023-05-26T07:24:21Z</dc:date>
    <item>
      <title>Input File Path from Autoloader in Delta Live Tables</title>
      <link>https://community.databricks.com/t5/data-engineering/input-file-path-from-autoloader-in-delta-live-tables/m-p/3979#M840</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there is any way to get the subdirectories in which the file resides while loading while loading using Autoloader with DLT. For example:&lt;/P&gt;&lt;P&gt;def customer():&lt;/P&gt;&lt;P&gt;&amp;nbsp;return (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;spark.readStream.format('cloudfiles')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option('cloudFiles.format', 'json')&lt;/P&gt;&lt;P&gt;.load(f'/Users/customer/dynamic_dlt/raw/customer/customer_*.json')&lt;/P&gt;&lt;P&gt;.withColumn('input_file', input_file_name())&lt;/P&gt;&lt;P&gt;But instead of input_file_name() something like input_file_path()&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 00:53:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/input-file-path-from-autoloader-in-delta-live-tables/m-p/3979#M840</guid>
      <dc:creator>Enzo_Bahrami</dc:creator>
      <dc:date>2023-05-26T00:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Input File Path from Autoloader in Delta Live Tables</title>
      <link>https://community.databricks.com/t5/data-engineering/input-file-path-from-autoloader-in-delta-live-tables/m-p/3980#M841</link>
      <description>&lt;P&gt;Hi @Parsa Bahraminejad​&amp;nbsp;, I'm not sure of an inbuilt function to get the sub directory name but you can easily do this by using split function on '/' on the input_file_name() as the file name will have the complete path as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps. &lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 07:24:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/input-file-path-from-autoloader-in-delta-live-tables/m-p/3980#M841</guid>
      <dc:creator>pvignesh92</dc:creator>
      <dc:date>2023-05-26T07:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Input File Path from Autoloader in Delta Live Tables</title>
      <link>https://community.databricks.com/t5/data-engineering/input-file-path-from-autoloader-in-delta-live-tables/m-p/3981#M842</link>
      <description>&lt;P&gt;Hi @Parsa Bahraminejad​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Vigneshraja Palaniraj​&amp;nbsp;​, and I was checking back to see if her suggestions helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 08:37:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/input-file-path-from-autoloader-in-delta-live-tables/m-p/3981#M842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-01T08:37:22Z</dc:date>
    </item>
  </channel>
</rss>

