<?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: Overwriting a csv using Spark notebook creates artifacts in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3511432#M950</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/634523"&gt;@Ostrzak&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. Otherwise, will respond back with the more details and we will try to help .&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 08:38:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-02T08:38:02Z</dc:date>
    <item>
      <title>Overwriting a csv using Spark notebook creates artifacts</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3505264#M946</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might be a bit stupid of a question, but is there a way to overwrite csv files in a lakehouse (using Pyspark notebook) without creation of additional folders/artifacts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now when I use:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df.write.mode(&lt;/SPAN&gt;&lt;SPAN&gt;"overwrite"&lt;/SPAN&gt;&lt;SPAN&gt;).csv(&lt;/SPAN&gt;&lt;SPAN&gt;"file_path")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;A new subfolder is created (named as original file), within it SUCCESS artifact and a .csv file with a hashed name.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ostrzak_0-1698687647912.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/988835iA869DDE94E73ACEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ostrzak_0-1698687647912.png" alt="Ostrzak_0-1698687647912.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;SPAN&gt;I can live with it, but it would be nice if it could just overwrite a file and leave it in the same destination.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance for any feedback.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Oct 2023 17:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3505264#M946</guid>
      <dc:creator>Ostrzak</dc:creator>
      <dc:date>2023-10-30T17:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting a csv using Spark notebook creates artifacts</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3505499#M947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/634523"&gt;@Ostrzak&lt;/a&gt;&amp;nbsp;what is the value in "file_path"?&amp;nbsp; If I specify a Files folder to save the CSV to, it replaces the current CSV with a new version - changing the CSV filename in the process.&amp;nbsp; But the old one has been removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyDDC_0-1698694337789.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/988882i0CE360152F246E5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyDDC_0-1698694337789.png" alt="AndyDDC_0-1698694337789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyDDC_1-1698694354260.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/988883i37AF67DF8BEEF01C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyDDC_1-1698694354260.png" alt="AndyDDC_1-1698694354260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 19:33:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3505499#M947</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-10-30T19:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting a csv using Spark notebook creates artifacts</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3507003#M948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/265587"&gt;@AndyDDC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for answering.&lt;/P&gt;&lt;P&gt;I had it saved directly to the lakehouse Files, without any subfolder. When I overwrite it, it lands in a subfolder that is named as the file before, while inside there are&amp;nbsp; two entities:&lt;/P&gt;&lt;P&gt;- csv file with hashed name&lt;/P&gt;&lt;P&gt;- SUCCESS artifact&lt;/P&gt;&lt;P&gt;I see from your example that it works fine after it creates the aforementioned structure. That is useful knowledge. I guess I have to get accustomed to this structure, at the end of a day it is still human-readable.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 11:13:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3507003#M948</guid>
      <dc:creator>Ostrzak</dc:creator>
      <dc:date>2023-10-31T11:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting a csv using Spark notebook creates artifacts</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3507024#M949</link>
      <description>&lt;P&gt;Yes it's advisable to have sub-folders when writing, as there could be overwrite issues.&lt;/P&gt;&lt;P&gt;If my reply has been helpful please consider marking it as the solution.&lt;/P&gt;&lt;P&gt;Glad it's sorted now&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 11:25:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3507024#M949</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-10-31T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting a csv using Spark notebook creates artifacts</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3511432#M950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/634523"&gt;@Ostrzak&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. Otherwise, will respond back with the more details and we will try to help .&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 08:38:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Overwriting-a-csv-using-Spark-notebook-creates-artifacts/m-p/3511432#M950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-02T08:38:02Z</dc:date>
    </item>
  </channel>
</rss>

