<?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: spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737437#M10290</link>
    <description>&lt;P&gt;solved by changing it to delta&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;spark.sql("SELECT * FROM delta.`&amp;lt;abfs_path&amp;gt;/Tables/&amp;lt;table_name&amp;gt;`")&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2025 10:51:08 GMT</pubDate>
    <dc:creator>Zoe_Guest</dc:creator>
    <dc:date>2025-06-19T10:51:08Z</dc:date>
    <item>
      <title>spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737212#M10283</link>
      <description>&lt;P&gt;I have data in a Lakehouse and I have deleted some of it. I am trying to load it from a Fabric Notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use spark.sql("SELECT * FROM parquet.`&amp;lt;abfs_path&amp;gt;/Tables/&amp;lt;table_name&amp;gt;`" then I get the old data I have deleted from the lakehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use&amp;nbsp;spark.read.load(&amp;lt;abfs_path&amp;gt;/Tables/&amp;lt;table_name&amp;gt;) I dont get this deleted data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to use the abfs path as I am not setting a default lakehouse and can't set one to solve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is this old data coming up when I use spark.sql when the paths are exactly the same?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 09:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737212#M10283</guid>
      <dc:creator>Zoe_Guest</dc:creator>
      <dc:date>2025-06-19T09:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737326#M10286</link>
      <description>&lt;P&gt;The paths are the same but you're using a different method to query them&lt;BR /&gt;&lt;BR /&gt;spark.sql("SELECT * FROM parquet.`&amp;lt;abfs_path&amp;gt;/Tables/&amp;lt;table_name&amp;gt;`")&lt;BR /&gt;&lt;BR /&gt;Spark SQL - may be using cached metadata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spark.read.load("&amp;lt;abfs_path&amp;gt;/Tables/&amp;lt;table_name&amp;gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataframe API - reads current state of files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could add a cell to your notebook that clears the cache if you want to use the Spark SQL code&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spark.catalog.clearCache()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give a thumbs up if this helps, thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 10:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737326#M10286</guid>
      <dc:creator>wardy912</dc:creator>
      <dc:date>2025-06-19T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737373#M10287</link>
      <description>&lt;P&gt;Unfortuantly clearing the cache doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however this also gets the deleted data, so i think it's in specifying parquet.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spark.read.format("parquet").load(_table_abfs)&lt;/LI-CODE&gt;&lt;DIV&gt;I want to be able to use a sql query and the abfs path to the data to load the data, any ideas on how i can do this?&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Jun 2025 10:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737373#M10287</guid>
      <dc:creator>Zoe_Guest</dc:creator>
      <dc:date>2025-06-19T10:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737413#M10288</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;!--  ScriptorStartFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;df&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.sql&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT *&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM &amp;lt;lakehouse&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;You can also drag the table from the left hand side in the lakehouse to a cell and it will automatically add a SQL query for that table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--  ScriptorEndFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 10:40:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737413#M10288</guid>
      <dc:creator>wardy912</dc:creator>
      <dc:date>2025-06-19T10:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737419#M10289</link>
      <description>&lt;P&gt;I can't set it as the default lakehouse which is why i want to use the abfs path, how do you do this with the abfs path?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 10:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737419#M10289</guid>
      <dc:creator>Zoe_Guest</dc:creator>
      <dc:date>2025-06-19T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737437#M10290</link>
      <description>&lt;P&gt;solved by changing it to delta&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;spark.sql("SELECT * FROM delta.`&amp;lt;abfs_path&amp;gt;/Tables/&amp;lt;table_name&amp;gt;`")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 10:51:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737437#M10290</guid>
      <dc:creator>Zoe_Guest</dc:creator>
      <dc:date>2025-06-19T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: spark.sql is getting old data that was deleted from Lakehouse whereas spark.read.load doesn't</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737672#M10291</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1184147" data-lia-user-login="Zoe_Guest" class="lia-mention lia-mention-user"&gt;Zoe_Guest&lt;/a&gt;&amp;nbsp;Thanks for being part of Fabric community and making it grow.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475583" data-lia-user-login="wardy912" class="lia-mention lia-mention-user"&gt;wardy912&lt;/a&gt;&amp;nbsp;Thanks for your prompt response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Prashanth Are&lt;/P&gt;
&lt;P&gt;MS Fabric community support&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 12:59:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/spark-sql-is-getting-old-data-that-was-deleted-from-Lakehouse/m-p/4737672#M10291</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-06-19T12:59:16Z</dc:date>
    </item>
  </channel>
</rss>

