<?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 File trigger options -- cloudFiles.allowOverwrites in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/file-trigger-options-cloudfiles-allowoverwrites/m-p/63835#M32374</link>
    <description>&lt;P&gt;I have a Job configured to run on the file arrival&amp;nbsp;&lt;BR /&gt;I have provided the path as&amp;nbsp;&lt;BR /&gt;File arrival path: s3://test_bucket/test_cat/test_schema/&lt;/P&gt;&lt;P&gt;When a new parquet file arrived in this path the job was triggering automatically and processed the file&lt;/P&gt;&lt;P&gt;In case of reloading means, Overwriting the existing file&lt;BR /&gt;I am uploading the same file again (with same name) to this path then No run was triggered&amp;nbsp;&lt;BR /&gt;(No worries about duplicating the data I just need to trigger the job)&lt;BR /&gt;Code as below:&lt;BR /&gt;spark.readStream.format("cloudFiles")&lt;BR /&gt;.option("cloudFiles.format", "parquet")&lt;BR /&gt;.option("inferSchema", "false")&lt;BR /&gt;.option("cloudFiles.allowOverwrites", "true")&lt;BR /&gt;.option("cloudFiles.schemaLocation", "checkpoint_dir")&lt;BR /&gt;.load(data_source)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do I need to enable any other settings in order to trigger the job?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 15:27:21 GMT</pubDate>
    <dc:creator>srinivas_001</dc:creator>
    <dc:date>2024-03-15T15:27:21Z</dc:date>
    <item>
      <title>File trigger options -- cloudFiles.allowOverwrites</title>
      <link>https://community.databricks.com/t5/data-engineering/file-trigger-options-cloudfiles-allowoverwrites/m-p/63835#M32374</link>
      <description>&lt;P&gt;I have a Job configured to run on the file arrival&amp;nbsp;&lt;BR /&gt;I have provided the path as&amp;nbsp;&lt;BR /&gt;File arrival path: s3://test_bucket/test_cat/test_schema/&lt;/P&gt;&lt;P&gt;When a new parquet file arrived in this path the job was triggering automatically and processed the file&lt;/P&gt;&lt;P&gt;In case of reloading means, Overwriting the existing file&lt;BR /&gt;I am uploading the same file again (with same name) to this path then No run was triggered&amp;nbsp;&lt;BR /&gt;(No worries about duplicating the data I just need to trigger the job)&lt;BR /&gt;Code as below:&lt;BR /&gt;spark.readStream.format("cloudFiles")&lt;BR /&gt;.option("cloudFiles.format", "parquet")&lt;BR /&gt;.option("inferSchema", "false")&lt;BR /&gt;.option("cloudFiles.allowOverwrites", "true")&lt;BR /&gt;.option("cloudFiles.schemaLocation", "checkpoint_dir")&lt;BR /&gt;.load(data_source)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do I need to enable any other settings in order to trigger the job?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 15:27:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-trigger-options-cloudfiles-allowoverwrites/m-p/63835#M32374</guid>
      <dc:creator>srinivas_001</dc:creator>
      <dc:date>2024-03-15T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: File trigger options -- cloudFiles.allowOverwrites</title>
      <link>https://community.databricks.com/t5/data-engineering/file-trigger-options-cloudfiles-allowoverwrites/m-p/63979#M32425</link>
      <description>&lt;P&gt;Hi Kaniz,&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;BR /&gt;I am using the databricks runtime 11.3, also checked the checkpoint and data source location which are properly configured. Still I am unable to trigger the job.&lt;/P&gt;&lt;P&gt;NOTE: Incoming files are pushed to AWS s3 location from Apache airflow with REPLACE option TRUE.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 10:40:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/file-trigger-options-cloudfiles-allowoverwrites/m-p/63979#M32425</guid>
      <dc:creator>srinivas_001</dc:creator>
      <dc:date>2024-03-18T10:40:55Z</dc:date>
    </item>
  </channel>
</rss>

