<?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: Error with federation for Snowflake in Databricks SQL in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19049#M662</link>
    <description>&lt;P&gt;Hi @Bob TheBuilder​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell it seems like a bug that will be fixed in an upcoming release. While not ideal, are you able to run that SQL code from a Notebook and see if it works?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 21:49:43 GMT</pubDate>
    <dc:creator>LandanG</dc:creator>
    <dc:date>2022-12-02T21:49:43Z</dc:date>
    <item>
      <title>Error with federation for Snowflake in Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19048#M661</link>
      <description>&lt;P&gt;Hello, I am trying to test the new federation for Snowflake feature in Databricks SQL, following the docs (https://docs.databricks.com/query-federation/snowflake.html).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Subscription: Premium&lt;/LI&gt;&lt;LI&gt;Compute: DB SQL (serverless)&lt;/LI&gt;&lt;LI&gt;Metastore: Unity Catalog&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run the following query (but with the parameters for my own Snowflake environment, of course):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE TABLE snowflake_table
USING snowflake
OPTIONS (
  dbtable '&amp;lt;table-name&amp;gt;',
  sfUrl '&amp;lt;database-host-url&amp;gt;',
  sfUser '&amp;lt;my_username&amp;gt;',
  sfPassword '&amp;lt;my_password&amp;gt;',
  sfDatabase '&amp;lt;database-name&amp;gt;',
  sfSchema '&amp;lt;schema-name&amp;gt;',
  sfWarehouse '&amp;lt;warehouse-name&amp;gt;'
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Unsupported operation detected in the query plan. Only Delta data source is supported for table creation or data writing.
Query plan:
CreateDataSourceTableCommand `main`.`default`.`snowflake_table`, false&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Why is this happening and how can I get this working? What limitations to this new feature am I missing and need to be aware of? Thanks in advance for your guidance.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 16:48:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19048#M661</guid>
      <dc:creator>bob1</dc:creator>
      <dc:date>2022-12-02T16:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error with federation for Snowflake in Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19049#M662</link>
      <description>&lt;P&gt;Hi @Bob TheBuilder​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell it seems like a bug that will be fixed in an upcoming release. While not ideal, are you able to run that SQL code from a Notebook and see if it works?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 21:49:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19049#M662</guid>
      <dc:creator>LandanG</dc:creator>
      <dc:date>2022-12-02T21:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error with federation for Snowflake in Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19050#M663</link>
      <description>&lt;P&gt;Hi @Landan George​, thanks for the quick response. I get the following error if I try to run the SQL code from a Notebook:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SQLException: No suitable driver found for jdbc:snowflake://app.snowflake.com/region/foo/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 21:54:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19050#M663</guid>
      <dc:creator>bob1</dc:creator>
      <dc:date>2022-12-02T21:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error with federation for Snowflake in Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19051#M664</link>
      <description>&lt;P&gt;@Bob TheBuilder​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the below work in a notebook?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.sql(f"""
CREATE TABLE snowflake_table
USING snowflake
OPTIONS (
  dbtable '&amp;lt;table-name&amp;gt;',
  sfUrl '&amp;lt;database-host-url&amp;gt;',
  sfUser '&amp;lt;my_username&amp;gt;',
  sfPassword '&amp;lt;my_password&amp;gt;',
  sfDatabase '&amp;lt;database-name&amp;gt;',
  sfSchema '&amp;lt;schema-name&amp;gt;',
  sfWarehouse '&amp;lt;warehouse-name&amp;gt;'
)""")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If not you may need to use this method &lt;A href="https://docs.databricks.com/external-data/snowflake.html" alt="https://docs.databricks.com/external-data/snowflake.html" target="_blank"&gt;https://docs.databricks.com/external-data/snowflake.html&lt;/A&gt; to temporarily read data while the DB SQL bug is fixed.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 22:43:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19051#M664</guid>
      <dc:creator>LandanG</dc:creator>
      <dc:date>2022-12-02T22:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error with federation for Snowflake in Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19052#M665</link>
      <description>&lt;P&gt;@Landan George​&amp;nbsp;thanks for sharing the code snippet —&amp;nbsp;unfortunately no luck. Getting the same "No suitable driver found for [...]" error.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 17:12:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/error-with-federation-for-snowflake-in-databricks-sql/m-p/19052#M665</guid>
      <dc:creator>bob1</dc:creator>
      <dc:date>2022-12-03T17:12:23Z</dc:date>
    </item>
  </channel>
</rss>

