<?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 Warehouse cluster is always running when configure metabase conneciton in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/sql-warehouse-cluster-is-always-running-when-configure-metabase/m-p/55464#M6288</link>
    <description>&lt;P&gt;Will try to remove "&lt;SPAN&gt;preferredTestQuery" or add "idleConnectionTestPeriod" to avoid keep send select 1 query.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 22:05:33 GMT</pubDate>
    <dc:creator>xfun</dc:creator>
    <dc:date>2023-12-18T22:05:33Z</dc:date>
    <item>
      <title>SQL Warehouse cluster is always running when configure metabase conneciton</title>
      <link>https://community.databricks.com/t5/get-started-discussions/sql-warehouse-cluster-is-always-running-when-configure-metabase/m-p/55462#M6287</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I encountered an issue while using the Metabase JDBC driver to connect to Databricks SQL Warehouse: I noticed that the SQL Warehouse cluster is always running and never stops automatically. Every few seconds, a &lt;/SPAN&gt;SELECT 1&lt;SPAN&gt; query log appears, which I suspect might be Metabase JDBC Databricks driver's method of maintaining a persistent connection, though I'm not entirely sure. I'm wondering how to configure it so that when no one is using Metabase, the SQL Warehouse does not continuously execute the &lt;/SPAN&gt;SELECT 1&lt;SPAN&gt; query, and the SQL Warehouse can appropriately stop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;···&lt;/P&gt;&lt;P&gt;(defmethod sql-jdbc.conn/data-warehouse-connection-pool-properties :hive-like&lt;BR /&gt;[driver database]&lt;BR /&gt;;; The Hive JDBC driver doesn't support `Connection.isValid()`, so we need to supply a test query for c3p0 to use to&lt;BR /&gt;;; validate connections upon checkout.&lt;BR /&gt;(merge&lt;BR /&gt;((get-method sql-jdbc.conn/data-warehouse-connection-pool-properties :sql-jdbc) driver database)&lt;BR /&gt;{"preferredTestQuery" "SELECT 1"}))&lt;/P&gt;&lt;P&gt;···&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 21:54:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/sql-warehouse-cluster-is-always-running-when-configure-metabase/m-p/55462#M6287</guid>
      <dc:creator>xfun</dc:creator>
      <dc:date>2023-12-18T21:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Warehouse cluster is always running when configure metabase conneciton</title>
      <link>https://community.databricks.com/t5/get-started-discussions/sql-warehouse-cluster-is-always-running-when-configure-metabase/m-p/55464#M6288</link>
      <description>&lt;P&gt;Will try to remove "&lt;SPAN&gt;preferredTestQuery" or add "idleConnectionTestPeriod" to avoid keep send select 1 query.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 22:05:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/sql-warehouse-cluster-is-always-running-when-configure-metabase/m-p/55464#M6288</guid>
      <dc:creator>xfun</dc:creator>
      <dc:date>2023-12-18T22:05:33Z</dc:date>
    </item>
  </channel>
</rss>

