<?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 Delta sharing view and cached data in DSFF in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-sharing-view-and-cached-data-in-dsff/m-p/119855#M45982</link>
    <description>&lt;P&gt;I've created a view with row level access based on CURRENT_RECIPIENT() function in the where clause. And I have 100s of clients as recipients that query this view.&lt;BR /&gt;The problem is, when I modify this view CREATE OR REPLACE with a new sql code, and recipient tries to get data from this view it gets old cached data from DSFF layer materialized internal views, created during the previous requests. I see in the logs that databricks drops that specific after 8 hours.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;__dsff_materialization_common_view_7383f853e81c4b3e9405acb3d360034c&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I don't see these internal views in UC.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. How can I refresh or drop this cache as soon as I CREATE OR REPLACE the view, so recipient always get up to date data?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Also how can I estimate the cost of these serverless pipeline or cluster runs, that are triggered when recipient pull the data? I don't see it in&amp;nbsp;&lt;SPAN&gt;system.billing.usage there is no specific sku_name for this serverless activities, even more there are no anu billing rows for this delta sharing serverless runs.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;3. For which services should I pay, for serverless compute or for data stored/cached somewhere in databricks plane? Is there any pricing for deltasharing views assosiated resources? I was not able to find in documentation.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 10:28:52 GMT</pubDate>
    <dc:creator>drag7ter</dc:creator>
    <dc:date>2025-05-21T10:28:52Z</dc:date>
    <item>
      <title>Delta sharing view and cached data in DSFF</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-sharing-view-and-cached-data-in-dsff/m-p/119855#M45982</link>
      <description>&lt;P&gt;I've created a view with row level access based on CURRENT_RECIPIENT() function in the where clause. And I have 100s of clients as recipients that query this view.&lt;BR /&gt;The problem is, when I modify this view CREATE OR REPLACE with a new sql code, and recipient tries to get data from this view it gets old cached data from DSFF layer materialized internal views, created during the previous requests. I see in the logs that databricks drops that specific after 8 hours.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;__dsff_materialization_common_view_7383f853e81c4b3e9405acb3d360034c&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I don't see these internal views in UC.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. How can I refresh or drop this cache as soon as I CREATE OR REPLACE the view, so recipient always get up to date data?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Also how can I estimate the cost of these serverless pipeline or cluster runs, that are triggered when recipient pull the data? I don't see it in&amp;nbsp;&lt;SPAN&gt;system.billing.usage there is no specific sku_name for this serverless activities, even more there are no anu billing rows for this delta sharing serverless runs.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;3. For which services should I pay, for serverless compute or for data stored/cached somewhere in databricks plane? Is there any pricing for deltasharing views assosiated resources? I was not able to find in documentation.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 10:28:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-sharing-view-and-cached-data-in-dsff/m-p/119855#M45982</guid>
      <dc:creator>drag7ter</dc:creator>
      <dc:date>2025-05-21T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delta sharing view and cached data in DSFF</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-sharing-view-and-cached-data-in-dsff/m-p/135387#M50339</link>
      <description>&lt;P&gt;Have you tried something like this already?&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Force Cache Invalidation (Recommended)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;-- After CREATE OR REPLACE VIEW, execute:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALTER&lt;/SPAN&gt;&lt;SPAN class=""&gt; SHARE &amp;lt;share_name&amp;gt; REMOVE &lt;/SPAN&gt;&lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt;&lt;SPAN class=""&gt; &amp;lt;schema&amp;gt;.&amp;lt;view_name&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALTER&lt;/SPAN&gt;&lt;SPAN class=""&gt; SHARE &amp;lt;share_name&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;ADD&lt;/SPAN&gt; &lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt;&lt;SPAN class=""&gt; &amp;lt;schema&amp;gt;.&amp;lt;view_name&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;This forces DSFF to drop materialized views and recreate them on next access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;You could also automate this with SDK.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;# Use Databricks SDK to trigger cache refresh&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN class=""&gt; databricks.sdk &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; WorkspaceClient&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;def&lt;/SPAN&gt;&lt;SPAN class=""&gt; invalidate_dsff_cache(share_name, view_name):&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;w = WorkspaceClient()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;# Remove and re-add to share&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;w.shares.update(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;name=share_name,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;updates=[&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;RemoveTable(name=&lt;/SPAN&gt;&lt;SPAN class=""&gt;f"{schema}.{view_name}"&lt;/SPAN&gt;&lt;SPAN class=""&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;AddTable(name=&lt;/SPAN&gt;&lt;SPAN class=""&gt;f"{schema}.{view_name}"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 22:24:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-sharing-view-and-cached-data-in-dsff/m-p/135387#M50339</guid>
      <dc:creator>AbhaySingh</dc:creator>
      <dc:date>2025-10-19T22:24:27Z</dc:date>
    </item>
  </channel>
</rss>

