<?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 Change default catalog in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/change-default-catalog/m-p/36175#M5808</link>
    <description>&lt;P&gt;It seems that when I am connecting to Databricks Warehouse, it is using the default catalog which is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hive_metastore. Is there a way to define unity catalog to be the default?&lt;/P&gt;&lt;P&gt;I know I can run the query&lt;/P&gt;&lt;PRE&gt;USE CATALOG MAIN&lt;/PRE&gt;&lt;P&gt;And then the current session will use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;unity-catalog. But I am looking for a way that it will always be the default. So, if the first query after login we will be&lt;/P&gt;&lt;PRE&gt;CREATE SCHEMA IF NOT EXISTS MY_SCHEMA&lt;/PRE&gt;&lt;P&gt;The schema will be created inside the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;main&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;catalog.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 14:45:52 GMT</pubDate>
    <dc:creator>gilo12</dc:creator>
    <dc:date>2023-06-29T14:45:52Z</dc:date>
    <item>
      <title>Change default catalog</title>
      <link>https://community.databricks.com/t5/get-started-discussions/change-default-catalog/m-p/36175#M5808</link>
      <description>&lt;P&gt;It seems that when I am connecting to Databricks Warehouse, it is using the default catalog which is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hive_metastore. Is there a way to define unity catalog to be the default?&lt;/P&gt;&lt;P&gt;I know I can run the query&lt;/P&gt;&lt;PRE&gt;USE CATALOG MAIN&lt;/PRE&gt;&lt;P&gt;And then the current session will use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;unity-catalog. But I am looking for a way that it will always be the default. So, if the first query after login we will be&lt;/P&gt;&lt;PRE&gt;CREATE SCHEMA IF NOT EXISTS MY_SCHEMA&lt;/PRE&gt;&lt;P&gt;The schema will be created inside the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;main&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;catalog.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 14:45:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/change-default-catalog/m-p/36175#M5808</guid>
      <dc:creator>gilo12</dc:creator>
      <dc:date>2023-06-29T14:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change default catalog</title>
      <link>https://community.databricks.com/t5/get-started-discussions/change-default-catalog/m-p/36181#M5809</link>
      <description>&lt;P&gt;You can set this per notebook or workspace or even at the compute level.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;spark.databricks.sql.initial.catalog.name mycatalog&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you add this to your cluster's spark config, all tools that run using that cluster will default to that catalog.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 15:38:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/change-default-catalog/m-p/36181#M5809</guid>
      <dc:creator>Brian2</dc:creator>
      <dc:date>2023-06-29T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change default catalog</title>
      <link>https://community.databricks.com/t5/get-started-discussions/change-default-catalog/m-p/44474#M5810</link>
      <description>&lt;P&gt;Thanks Brian2. Is there an equivalent config parameter for a SQL Warehouse?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 15:58:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/change-default-catalog/m-p/44474#M5810</guid>
      <dc:creator>Jon-ton</dc:creator>
      <dc:date>2023-09-12T15:58:06Z</dc:date>
    </item>
  </channel>
</rss>

