<?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: querying snowflake database using databricks query federation: no active warehouse in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/querying-snowflake-database-using-databricks-query-federation-no/m-p/99654#M40059</link>
    <description>&lt;P class="p1"&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/90411"&gt;@Eeg&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;The error message indicates that no active warehouse is selected. You can explicitly set the warehouse in your session using the USE WAREHOUSE command&lt;/P&gt;
&lt;P class="p1"&gt;USE WAREHOUSE &amp;lt;warehouse-name&amp;gt;;&lt;/P&gt;
&lt;P class="p1"&gt;And make sure that there is an active SQL warehouse running, and attached it to the notebook.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 16:06:07 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2024-11-21T16:06:07Z</dc:date>
    <item>
      <title>querying snowflake database using databricks query federation: no active warehouse</title>
      <link>https://community.databricks.com/t5/data-engineering/querying-snowflake-database-using-databricks-query-federation-no/m-p/99576#M40032</link>
      <description>&lt;P&gt;Hello Databricks community,&lt;/P&gt;&lt;P&gt;I'm confused right now because I was able to query snowflake table using query federation 2 days ago. But now it's giving me error about no active warehouse:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Status of query associated with resultSet is FAILED_WITH_ERROR. No active warehouse selected in the current session. Select an active warehouse with the 'use warehouse' command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please check the attached the error screenshot if you want further details on error.&lt;/P&gt;&lt;P&gt;Other details:&lt;/P&gt;&lt;P&gt;No change was made on snowflake side, with default warehouse been sat.&lt;/P&gt;&lt;P&gt;I created databricks connection by filling the needed fields for this scipt which was referenced from this link: &lt;A href="https://docs.databricks.com/en/query-federation/snowflake.html#language-SQL" target="_blank"&gt;https://docs.databricks.com/en/query-federation/snowflake.html#language-SQL&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE CONNECTION snowflake_connection1 TYPE snowflake
OPTIONS (
host '&amp;lt;hostname&amp;gt;',
port '&amp;lt;port&amp;gt;',
sfWarehouse '&amp;lt;warehouse-name&amp;gt;',
user secret ('&amp;lt;secret-scope&amp;gt;','&amp;lt;secret-key-user&amp;gt;'),
password secret ('&amp;lt;secret-scope&amp;gt;','&amp;lt;secret-key-password&amp;gt;')
)

CREATE FOREIGN CATALOG IF NOT EXISTS table USING CONNECTION snowflake_connection1
OPTIONS (database 'PR_JAPAN_APP_PROD_DB');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Have you guys every had same difficulty?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 06:28:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/querying-snowflake-database-using-databricks-query-federation-no/m-p/99576#M40032</guid>
      <dc:creator>Eeg</dc:creator>
      <dc:date>2024-11-21T06:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: querying snowflake database using databricks query federation: no active warehouse</title>
      <link>https://community.databricks.com/t5/data-engineering/querying-snowflake-database-using-databricks-query-federation-no/m-p/99654#M40059</link>
      <description>&lt;P class="p1"&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/90411"&gt;@Eeg&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;The error message indicates that no active warehouse is selected. You can explicitly set the warehouse in your session using the USE WAREHOUSE command&lt;/P&gt;
&lt;P class="p1"&gt;USE WAREHOUSE &amp;lt;warehouse-name&amp;gt;;&lt;/P&gt;
&lt;P class="p1"&gt;And make sure that there is an active SQL warehouse running, and attached it to the notebook.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 16:06:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/querying-snowflake-database-using-databricks-query-federation-no/m-p/99654#M40059</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-11-21T16:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: querying snowflake database using databricks query federation: no active warehouse</title>
      <link>https://community.databricks.com/t5/data-engineering/querying-snowflake-database-using-databricks-query-federation-no/m-p/100280#M40254</link>
      <description>&lt;P&gt;Hello&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you very much for you response.&lt;/P&gt;&lt;P&gt;I was able to solve it on my side. The issue was lying on snowflake side. I realized I had to not only grant USAGE permission but also OPERATE permission to my snowflake account. Also added&amp;nbsp;sfRole to the connection. After renewing connection, recreated the external table one more time and it worked on my side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE CONNECTION snowflake_connection1 TYPE snowflake
OPTIONS (
host '&amp;lt;hostname&amp;gt;',
port '&amp;lt;port&amp;gt;',
sfWarehouse '&amp;lt;warehouse-name&amp;gt;',
sfRole '&amp;lt;role-name&amp;gt;',
user secret ('&amp;lt;secret-scope&amp;gt;','&amp;lt;secret-key-user&amp;gt;'),
password secret ('&amp;lt;secret-scope&amp;gt;','&amp;lt;secret-key-password&amp;gt;')
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 01:51:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/querying-snowflake-database-using-databricks-query-federation-no/m-p/100280#M40254</guid>
      <dc:creator>Eeg</dc:creator>
      <dc:date>2024-11-28T01:51:56Z</dc:date>
    </item>
  </channel>
</rss>

