<?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: Connect snowflake to Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111133#M43803</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124788"&gt;@adhi_databricks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you want to have multiple tables under different schemas/DBs in the same catalog, you need to create a foreign catalog that references each database separately and handle access and schema management appropriately in Databricks&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 14:16:27 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2025-02-25T14:16:27Z</dc:date>
    <item>
      <title>Connect snowflake to Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111130#M43800</link>
      <description>&lt;P&gt;Hey Folks,&lt;BR /&gt;&lt;BR /&gt;I just want to know if there is a way to mirror the Snowflake tables in Databricks , Meaning creating a table using format snowflake and give in options of table (host,user,pwd and dbtable in snowflake). I just tried it as per this code below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/* The following example applies to Databricks Runtime 11.3 LTS and above. */

DROP TABLE IF EXISTS snowflake_table;
CREATE TABLE snowflake_table
USING snowflake
OPTIONS (
    host '&amp;lt;hostname&amp;gt;',
    port '&amp;lt;port&amp;gt;', /* Optional - will use default port 443 if not specified. */
    user '&amp;lt;username&amp;gt;',
    password '&amp;lt;password&amp;gt;',
    sfWarehouse '&amp;lt;warehouse_name&amp;gt;',
    database '&amp;lt;database-name&amp;gt;',
    schema '&amp;lt;schema-name&amp;gt;', /* Optional - will use default schema "public" if not specified. */
    dbtable '&amp;lt;table-name&amp;gt;'
);
SELECT * FROM snowflake_table;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which raises the below error :&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;[&lt;A class="" href="https://docs.databricks.com/error-messages/error-classes.html#uc_file_scheme_for_table_creation_not_supported" target="_blank" rel="noopener noreferrer"&gt;UC_FILE_SCHEME_FOR_TABLE_CREATION_NOT_SUPPORTED&lt;/A&gt;] Creating table in Unity Catalog with file scheme jdbc is not supported. Instead, please create a federated data source connection using the CREATE CONNECTION command for the same table provider, then create a catalog based on the connection with a CREATE FOREIGN CATALOG command to reference the tables therein. SQLSTATE:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt; 0AKUC&lt;/FONT&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;As per this I checked the &lt;A href="https://docs.databricks.com/aws/en/query-federation/snowflake?language=SQL#create-a-connection" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/query-federation/snowflake?language=SQL#create-a-connection&lt;/A&gt; databricks docs to create foreign catalog which ideally mirrors a snowflake database , but&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;usecase is can we do it at table level , so i'll need one catalog and all different tables under different schemas in same single catalog in databricks , Help me to understand if this is possible?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Also the different tables are from different snowflake accounts!&lt;BR /&gt;&lt;BR /&gt;TIA!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 13:29:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111130#M43800</guid>
      <dc:creator>adhi_databricks</dc:creator>
      <dc:date>2025-02-25T13:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connect snowflake to Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111133#M43803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124788"&gt;@adhi_databricks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you want to have multiple tables under different schemas/DBs in the same catalog, you need to create a foreign catalog that references each database separately and handle access and schema management appropriately in Databricks&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 14:16:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111133#M43803</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-25T14:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connect snowflake to Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111234#M43828</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Databricks, the structure is: &lt;STRONG&gt;Catalog -&amp;gt; Schema -&amp;gt; Tables&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;while in Snowflake it is: &lt;STRONG&gt;Database -&amp;gt; Schema -&amp;gt; Tables&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The foreign_catalog in Databricks mirrors the Snowflake database, correct? For example, if one Snowflake account contains 10 databases, I would need to create 10 foreign catalogs in Databricks to reflect those Snowflake tables, as outlined in the documentation.&lt;/P&gt;&lt;P&gt;I would like to know how I can create these databases under a single foreign catalog. Additionally, if this is possible, how do I query the Snowflake tables from within Databricks?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 06:40:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111234#M43828</guid>
      <dc:creator>adhi_databricks</dc:creator>
      <dc:date>2025-02-26T06:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect snowflake to Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111262#M43834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/124788"&gt;@adhi_databricks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You are right about foreign_catalogs. Please note that&amp;nbsp;It is not possible to create multiple Snowflake databases under a single foreign catalog in Databricks directly. Each Snowflake database needs a separate foreign catalog to mirror the structure.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a foreign catalog for each Snowflake database.&lt;/LI&gt;
&lt;LI&gt;Use the appropriate connectors and settings to establish connection and query the tables.&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-sql _1t7bu9hb hljs language-sql gb5fhw3"&gt;&lt;SPAN class="hljs-comment"&gt;-- Example to query Snowflake table from Databricks&lt;/SPAN&gt;
&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="hljs-operator"&gt;*&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; foreign_catalog_name.schema_name.table_name;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="gb5fhw4"&gt;
&lt;DIV class="gb5fhw5"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Feb 2025 13:05:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111262#M43834</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-02-26T13:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connect snowflake to Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111347#M43855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/106294"&gt;@Alberto_Umana&lt;/a&gt;&amp;nbsp;, Just a QQ would we be able to change table properties like adding column details, column tagging and Column level masking on the snowflake tables that are under the foreign catalog created?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 04:14:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-snowflake-to-databricks/m-p/111347#M43855</guid>
      <dc:creator>adhi_databricks</dc:creator>
      <dc:date>2025-02-27T04:14:52Z</dc:date>
    </item>
  </channel>
</rss>

