<?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 Partition By () on Delta Files in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23453#M16181</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;I am trying to Partition By ()  on Delta file in pyspark language and using command:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df.write.format("delta").mode("overwrite").option("overwriteSchema","true").partitionBy("Partition Column").save("Partition file path") -- &lt;B&gt;It doesnt seems to work for me.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df.write.option("header",True).partitionBy("Partition Column").mode("overwrite").parquet("Partition file path") -- &lt;B&gt;it worked but in the further steps it complains about the file type is not delta.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the code to save partition file in delta format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 08:43:53 GMT</pubDate>
    <dc:creator>HarshaK</dc:creator>
    <dc:date>2022-04-07T08:43:53Z</dc:date>
    <item>
      <title>Partition By () on Delta Files</title>
      <link>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23453#M16181</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;I am trying to Partition By ()  on Delta file in pyspark language and using command:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df.write.format("delta").mode("overwrite").option("overwriteSchema","true").partitionBy("Partition Column").save("Partition file path") -- &lt;B&gt;It doesnt seems to work for me.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df.write.option("header",True).partitionBy("Partition Column").mode("overwrite").parquet("Partition file path") -- &lt;B&gt;it worked but in the further steps it complains about the file type is not delta.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the code to save partition file in delta format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 08:43:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23453#M16181</guid>
      <dc:creator>HarshaK</dc:creator>
      <dc:date>2022-04-07T08:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Partition By () on Delta Files</title>
      <link>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23454#M16182</link>
      <description>&lt;P&gt;.save("Partition file path") - it should be a folder path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally what runtime are you using? It was like that long before spark 3.x check it with command &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sc.version&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:35:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23454#M16182</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-07T09:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Partition By () on Delta Files</title>
      <link>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23455#M16183</link>
      <description>&lt;P&gt;Thanks @Hubert Dudek​&amp;nbsp; it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 10:52:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23455#M16183</guid>
      <dc:creator>HarshaK</dc:creator>
      <dc:date>2022-04-07T10:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Partition By () on Delta Files</title>
      <link>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23456#M16184</link>
      <description>&lt;P&gt;Haven't helped much, but I would appreciate if you select my answer as the best one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 11:48:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23456#M16184</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-07T11:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Partition By () on Delta Files</title>
      <link>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23457#M16185</link>
      <description>&lt;P&gt;Hey @Harsha kriplani​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you are well. Thank you for posting in here. It is awesome that you found a solution. Would you like to mark Hubert's answer as best? &amp;nbsp;It would be really helpful for the other members too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 16:36:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/partition-by-on-delta-files/m-p/23457#M16185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-26T16:36:14Z</dc:date>
    </item>
  </channel>
</rss>

