<?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: How to find which delta commit removed a specific file? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-find-which-delta-commit-removed-a-specific-file/m-p/18612#M12385</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;val oldestVersionAvailable = 
val newestVersionAvailable = 
val pathToDeltaTable = ""
val pathToFileName = ""
(oldestVersionAvailable to newestVersionAvailable).map { version =&amp;gt; 
    var df1 = spark.read.json(f"$pathToDeltaTable/_delta_log/$version%020d.json")
    if (df1.columns.toSeq.contains("remove")) {
      var df2 = df1.where("remove is not null").select("remove.path")
      var df3 = df2.filter('path.contains(pathToFileName))
      if (df3.count &amp;gt; 0)
         print(s"Commit Version $version removed the file $pathToFileName \n")
  }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jun 2021 21:45:34 GMT</pubDate>
    <dc:creator>brickster_2018</dc:creator>
    <dc:date>2021-06-25T21:45:34Z</dc:date>
    <item>
      <title>How to find which delta commit removed a specific file?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-find-which-delta-commit-removed-a-specific-file/m-p/18611#M12384</link>
      <description />
      <pubDate>Fri, 25 Jun 2021 21:45:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-find-which-delta-commit-removed-a-specific-file/m-p/18611#M12384</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-25T21:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to find which delta commit removed a specific file?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-find-which-delta-commit-removed-a-specific-file/m-p/18612#M12385</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;val oldestVersionAvailable = 
val newestVersionAvailable = 
val pathToDeltaTable = ""
val pathToFileName = ""
(oldestVersionAvailable to newestVersionAvailable).map { version =&amp;gt; 
    var df1 = spark.read.json(f"$pathToDeltaTable/_delta_log/$version%020d.json")
    if (df1.columns.toSeq.contains("remove")) {
      var df2 = df1.where("remove is not null").select("remove.path")
      var df3 = df2.filter('path.contains(pathToFileName))
      if (df3.count &amp;gt; 0)
         print(s"Commit Version $version removed the file $pathToFileName \n")
  }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 21:45:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-find-which-delta-commit-removed-a-specific-file/m-p/18612#M12385</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-25T21:45:34Z</dc:date>
    </item>
  </channel>
</rss>

