<?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: SQL queries unable to finish with databricks sql pro warehose in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/sql-queries-unable-to-finish-with-databricks-sql-pro-warehose/m-p/148207#M4862</link>
    <description>&lt;H3 data-path-to-node="12"&gt;1. Infrastructure as Code (IaC) - The "Golden Standard"&lt;/H3&gt;
&lt;P data-path-to-node="13"&gt;If you aren't already, moving your workspace deployment to &lt;STRONG data-path-to-node="13" data-index-in-node="59"&gt;Terraform&lt;/STRONG&gt; is the best way to solve this. Terraform maintains a "state" file. When you run &lt;CODE data-path-to-node="13" data-index-in-node="149"&gt;terraform destroy&lt;/CODE&gt;, it doesn't just delete the workspace; it tracks every specific firewall rule and tag it created.&lt;/P&gt;
&lt;UL data-path-to-node="14"&gt;
&lt;LI&gt;
&lt;P data-path-to-node="14,0,0"&gt;&lt;STRONG data-path-to-node="14,0,0" data-index-in-node="0"&gt;Benefit:&lt;/STRONG&gt; It ensures that if a rule was created for Workspace A, it is removed when Workspace A dies, regardless of the naming schema.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 data-path-to-node="15"&gt;2. Implementation of "Cleanup Tags"&lt;/H3&gt;
&lt;P data-path-to-node="16"&gt;To avoid manual hunting, apply a "Lifecycle" tag to every resource (including firewall rules) during creation, such as &lt;CODE data-path-to-node="16" data-index-in-node="119"&gt;Owner: &amp;lt;workspace_id&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;
&lt;UL data-path-to-node="17"&gt;
&lt;LI&gt;
&lt;P data-path-to-node="17,0,0"&gt;You can then run a simple &lt;STRONG data-path-to-node="17,0,0" data-index-in-node="26"&gt;Janitor Script&lt;/STRONG&gt; (via CLI or SDK) that runs every night or post-deletion to find any networking resources where the &lt;CODE data-path-to-node="17,0,0" data-index-in-node="140"&gt;Owner&lt;/CODE&gt; ID no longer exists in your list of active workspaces.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 data-path-to-node="18"&gt;3. Move to Serverless SQL Warehouses&lt;/H3&gt;
&lt;P data-path-to-node="19"&gt;If your organization allows it, moving to &lt;STRONG data-path-to-node="19" data-index-in-node="42"&gt;Serverless SQL&lt;/STRONG&gt; bypasses this entirely.&lt;/P&gt;
&lt;UL data-path-to-node="20"&gt;
&lt;LI&gt;
&lt;P data-path-to-node="20,0,0"&gt;&lt;STRONG data-path-to-node="20,0,0" data-index-in-node="0"&gt;How it helps:&lt;/STRONG&gt; Serverless compute runs in a Databricks-managed environment rather than your VNET. This means you don't have to manage the firewall rules, subnets, or tags for those SQL Warehouses—Databricks handles the entire lifecycle and cleanup.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 12 Feb 2026 16:22:20 GMT</pubDate>
    <dc:creator>youssefmrini</dc:creator>
    <dc:date>2026-02-12T16:22:20Z</dc:date>
    <item>
      <title>SQL queries unable to finish with databricks sql pro warehose</title>
      <link>https://community.databricks.com/t5/administration-architecture/sql-queries-unable-to-finish-with-databricks-sql-pro-warehose/m-p/147923#M4831</link>
      <description>&lt;P&gt;During a recent workspace migration/recreation of workspaces&amp;nbsp;we stumbled upon the problem, that it was no longer possible to execute sql queries (or get sample data from tables) using our sql warehouse or the shared compute cluster.&lt;/P&gt;&lt;P&gt;A sql query like SELECT 1; would start but then remain in some limbo state until canceled.&lt;/P&gt;&lt;P&gt;Investigations into the problem revealed that the sql warehouse and also the dev cluster were no longer able to successfully form a cluster thus being unable to execute a query.&lt;/P&gt;&lt;P&gt;After further investigations we discovered that this was due to a change in the naming schema for workspace related firewall rules.&lt;/P&gt;&lt;P&gt;Now the firewall rules are named like the (sub)network that is used by the workspace. So instead of having names like &lt;STRONG&gt;&lt;EM&gt;databricks-&amp;lt;workspace_id&amp;gt;-ingress&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;(which was the old naming schema) we now have names like &lt;STRONG&gt;&lt;EM&gt;db-&amp;lt;subnet_name&amp;gt;-ingress&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The network rules are applied to virtual machines according to network tags that are attached to each virtual machine in a workspace. These tags have the form &lt;STRONG&gt;&lt;EM&gt;databricks-&amp;lt;workspace_id&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Unfortunately when deleting an old workspace, the firewall rule is not deleted together with the other resources. When a new workspace is created, the virtual machines of this new workspace also have new tags attached to them containing the id of the new workspace. The target tags of the (not deleted) firewall rule, remain the same and still contain the workspace id of the old (now deleted) workspace.&lt;/P&gt;&lt;P&gt;Therefore, the firewall rule never gets applied to the new workspace's virtual machines which prevents all cluster creation within the new workspace.&lt;/P&gt;&lt;P&gt;My expectation when deleting a workspace would be that all related resource in the cloud environment will get deleted as well but this does not seem to be case ( I am actually left with quite a few artifacts after deleting a workspace).&lt;/P&gt;&lt;P&gt;What would be recommended way to deal with this? Having to remember to manually delete all the leftover resources does not seem to be feasible way in my opinion.&lt;/P&gt;&lt;P&gt;Are there any plans to improve automatic resource cleanup after deleting a workspace?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 15:52:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/sql-queries-unable-to-finish-with-databricks-sql-pro-warehose/m-p/147923#M4831</guid>
      <dc:creator>MiriamHundemer</dc:creator>
      <dc:date>2026-02-10T15:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL queries unable to finish with databricks sql pro warehose</title>
      <link>https://community.databricks.com/t5/administration-architecture/sql-queries-unable-to-finish-with-databricks-sql-pro-warehose/m-p/148207#M4862</link>
      <description>&lt;H3 data-path-to-node="12"&gt;1. Infrastructure as Code (IaC) - The "Golden Standard"&lt;/H3&gt;
&lt;P data-path-to-node="13"&gt;If you aren't already, moving your workspace deployment to &lt;STRONG data-path-to-node="13" data-index-in-node="59"&gt;Terraform&lt;/STRONG&gt; is the best way to solve this. Terraform maintains a "state" file. When you run &lt;CODE data-path-to-node="13" data-index-in-node="149"&gt;terraform destroy&lt;/CODE&gt;, it doesn't just delete the workspace; it tracks every specific firewall rule and tag it created.&lt;/P&gt;
&lt;UL data-path-to-node="14"&gt;
&lt;LI&gt;
&lt;P data-path-to-node="14,0,0"&gt;&lt;STRONG data-path-to-node="14,0,0" data-index-in-node="0"&gt;Benefit:&lt;/STRONG&gt; It ensures that if a rule was created for Workspace A, it is removed when Workspace A dies, regardless of the naming schema.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 data-path-to-node="15"&gt;2. Implementation of "Cleanup Tags"&lt;/H3&gt;
&lt;P data-path-to-node="16"&gt;To avoid manual hunting, apply a "Lifecycle" tag to every resource (including firewall rules) during creation, such as &lt;CODE data-path-to-node="16" data-index-in-node="119"&gt;Owner: &amp;lt;workspace_id&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;
&lt;UL data-path-to-node="17"&gt;
&lt;LI&gt;
&lt;P data-path-to-node="17,0,0"&gt;You can then run a simple &lt;STRONG data-path-to-node="17,0,0" data-index-in-node="26"&gt;Janitor Script&lt;/STRONG&gt; (via CLI or SDK) that runs every night or post-deletion to find any networking resources where the &lt;CODE data-path-to-node="17,0,0" data-index-in-node="140"&gt;Owner&lt;/CODE&gt; ID no longer exists in your list of active workspaces.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 data-path-to-node="18"&gt;3. Move to Serverless SQL Warehouses&lt;/H3&gt;
&lt;P data-path-to-node="19"&gt;If your organization allows it, moving to &lt;STRONG data-path-to-node="19" data-index-in-node="42"&gt;Serverless SQL&lt;/STRONG&gt; bypasses this entirely.&lt;/P&gt;
&lt;UL data-path-to-node="20"&gt;
&lt;LI&gt;
&lt;P data-path-to-node="20,0,0"&gt;&lt;STRONG data-path-to-node="20,0,0" data-index-in-node="0"&gt;How it helps:&lt;/STRONG&gt; Serverless compute runs in a Databricks-managed environment rather than your VNET. This means you don't have to manage the firewall rules, subnets, or tags for those SQL Warehouses—Databricks handles the entire lifecycle and cleanup.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Feb 2026 16:22:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/sql-queries-unable-to-finish-with-databricks-sql-pro-warehose/m-p/148207#M4862</guid>
      <dc:creator>youssefmrini</dc:creator>
      <dc:date>2026-02-12T16:22:20Z</dc:date>
    </item>
  </channel>
</rss>

