<?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: Is it possible to use Autoloader with a daily update file structure? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-use-autoloader-with-a-daily-update-file/m-p/23240#M16005</link>
    <description>&lt;P&gt;@Stephanie Rivera​&amp;nbsp;, You can use pathGlobfilter, but you will need a separate autoloader for which type of file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df_alert = spark.readStream.format("cloudFiles") \&lt;/P&gt;&lt;P&gt;.option("cloudFiles.format", "binaryFile") \&lt;/P&gt;&lt;P&gt;.option("pathGlobfilter", alert.csv") \&lt;/P&gt;&lt;P&gt;.load(&amp;lt;base_path&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I prefer to set some copy activity first (in Azure Data Factory, for example) to group all files in the same folder on Data Lake. So, for example, alerts.csv is copied to the alert folder and renamed to date, so alerts/2022-04-08.csv (or maybe parquet instead). Then folder I would register in databricks metastore so it will be queryable like SELECT * FROM Alerts, or as Data Live Table to convert it. Then, in the copy activity in Azure Data Factory, you can set it to detect only new files and copy them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 16:25:19 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-04-08T16:25:19Z</dc:date>
    <item>
      <title>Is it possible to use Autoloader with a daily update file structure?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-use-autoloader-with-a-daily-update-file/m-p/23239#M16004</link>
      <description>&lt;P&gt;We get new files from a third-p@rty each day. The files could be the same or different. However, each day all csv files arrive in the same dated folder. Is it possible to use autoloader on this structure?&lt;span class="lia-inline-image-display-wrapper" image-alt="The folders"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1958iC35BA7DD40FAFE26/image-size/large?v=v2&amp;amp;px=999" role="button" title="The folders" alt="The folders" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="In the folders"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1948i2292972D234DB149/image-size/large?v=v2&amp;amp;px=999" role="button" title="In the folders" alt="In the folders" /&gt;&lt;/span&gt;We want each csv file to be a table that gets updated each day. Like account table and accounting table....&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 16:10:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-use-autoloader-with-a-daily-update-file/m-p/23239#M16004</guid>
      <dc:creator>StephanieAlba</dc:creator>
      <dc:date>2022-04-08T16:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use Autoloader with a daily update file structure?</title>
      <link>https://community.databricks.com/t5/data-engineering/is-it-possible-to-use-autoloader-with-a-daily-update-file/m-p/23240#M16005</link>
      <description>&lt;P&gt;@Stephanie Rivera​&amp;nbsp;, You can use pathGlobfilter, but you will need a separate autoloader for which type of file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df_alert = spark.readStream.format("cloudFiles") \&lt;/P&gt;&lt;P&gt;.option("cloudFiles.format", "binaryFile") \&lt;/P&gt;&lt;P&gt;.option("pathGlobfilter", alert.csv") \&lt;/P&gt;&lt;P&gt;.load(&amp;lt;base_path&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I prefer to set some copy activity first (in Azure Data Factory, for example) to group all files in the same folder on Data Lake. So, for example, alerts.csv is copied to the alert folder and renamed to date, so alerts/2022-04-08.csv (or maybe parquet instead). Then folder I would register in databricks metastore so it will be queryable like SELECT * FROM Alerts, or as Data Live Table to convert it. Then, in the copy activity in Azure Data Factory, you can set it to detect only new files and copy them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 16:25:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-it-possible-to-use-autoloader-with-a-daily-update-file/m-p/23240#M16005</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-08T16:25:19Z</dc:date>
    </item>
  </channel>
</rss>

