<?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: Autoloader ingestion same top level directory different files corresponding to different tables in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/autoloader-ingestion-same-top-level-directory-different-files/m-p/66049#M33000</link>
    <description>&lt;P&gt;Read all the files using auto loader and add an additional column as follows:&lt;/P&gt;&lt;PRE&gt;.withColumn("filePath",input_file_name())&lt;/PRE&gt;&lt;P&gt;Now that you've file name, you can split the data frame as per your requirement and ingest data into different tables.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 06:44:00 GMT</pubDate>
    <dc:creator>AmanSehgal</dc:creator>
    <dc:date>2024-04-11T06:44:00Z</dc:date>
    <item>
      <title>Autoloader ingestion same top level directory different files corresponding to different tables</title>
      <link>https://community.databricks.com/t5/data-engineering/autoloader-ingestion-same-top-level-directory-different-files/m-p/66029#M32989</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I have files landing in a storage account. They are all located in subfolders of a common directory. Some subdirectories may contain files, others may not. Each file name is unique and corresponds to a unique table as well. No two files are updating the same table. Is it possible to use autoloader and cloudfiles in a such a way that it can be given the path to a main directory as input, propagate through it, and process the data per file?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 17:40:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoloader-ingestion-same-top-level-directory-different-files/m-p/66029#M32989</guid>
      <dc:creator>anonymous_567</dc:creator>
      <dc:date>2024-04-10T17:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader ingestion same top level directory different files corresponding to different tables</title>
      <link>https://community.databricks.com/t5/data-engineering/autoloader-ingestion-same-top-level-directory-different-files/m-p/66049#M33000</link>
      <description>&lt;P&gt;Read all the files using auto loader and add an additional column as follows:&lt;/P&gt;&lt;PRE&gt;.withColumn("filePath",input_file_name())&lt;/PRE&gt;&lt;P&gt;Now that you've file name, you can split the data frame as per your requirement and ingest data into different tables.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 06:44:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/autoloader-ingestion-same-top-level-directory-different-files/m-p/66049#M33000</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2024-04-11T06:44:00Z</dc:date>
    </item>
  </channel>
</rss>

