<?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: Unable to create table with primary key in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/42481#M834</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes enabled . Its working now. I am able to create table with primary key.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 12:23:10 GMT</pubDate>
    <dc:creator>mano7438</dc:creator>
    <dc:date>2023-08-28T12:23:10Z</dc:date>
    <item>
      <title>Unable to create table with primary key</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41275#M787</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Getting below error while creating a table with primary key,&lt;/P&gt;&lt;P&gt;"Table constraints are only supported in Unity Catalog."&lt;/P&gt;&lt;P&gt;Table script :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt; &lt;SPAN&gt;persons&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;first_name&lt;/SPAN&gt; &lt;SPAN&gt;STRING&lt;/SPAN&gt; &lt;SPAN&gt;NOT&lt;/SPAN&gt; &lt;SPAN&gt;NULL&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;last_name&lt;/SPAN&gt; &lt;SPAN&gt;STRING&lt;/SPAN&gt; &lt;SPAN&gt;NOT&lt;/SPAN&gt; &lt;SPAN&gt;NULL&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;nickname&lt;/SPAN&gt; &lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;CONSTRAINT&lt;/SPAN&gt; &lt;SPAN&gt;persons_pk&lt;/SPAN&gt; &lt;SPAN&gt;PRIMARY&lt;/SPAN&gt; &lt;SPAN&gt;KEY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;first_name&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;last_name&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Aug 2023 06:29:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41275#M787</guid>
      <dc:creator>mano7438</dc:creator>
      <dc:date>2023-08-24T06:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create table with primary key</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41279#M789</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;SPAN&gt;primary key is not supported outside Unity Catalog.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please refer:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/tables/constraints.html#declare-primary-key-and-foreign-key-relationships" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/tables/constraints.html#declare-primary-key-and-foreign-key-relationships&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please let us know if this helps, also, please tag&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;with your next comment which will notify me. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 07:13:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41279#M789</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-24T07:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create table with primary key</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41282#M790</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating inside unity catalog only because I have enabled unity catalog for my workspace.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 07:15:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41282#M790</guid>
      <dc:creator>mano7438</dc:creator>
      <dc:date>2023-08-24T07:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create table with primary key</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41421#M801</link>
      <description>&lt;P&gt;Hi, this needs further investigation, could you please raise a support case with Databricks?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 06:12:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41421#M801</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-25T06:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create table with primary key</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41440#M804</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have enabled unity catalog for my SQL warehouse like below, Could you please verify, is this correct way of enabling unity catalog or am doing anything wrong. It will be good if u will provide correct steps for enabling unity catalog for workspace&lt;/P&gt;&lt;P&gt;Please find the attached screen shot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mano7438_0-1692945766429.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3252iBCEFE770E101FE11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mano7438_0-1692945766429.png" alt="mano7438_0-1692945766429.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mano7438_1-1692945796409.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3253iA11D1BF9C25406F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mano7438_1-1692945796409.png" alt="mano7438_1-1692945796409.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 06:45:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/41440#M804</guid>
      <dc:creator>mano7438</dc:creator>
      <dc:date>2023-08-25T06:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create table with primary key</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/42480#M833</link>
      <description>&lt;P&gt;Hi, Did you also enable it from the account console?&amp;nbsp;&lt;A href="https://docs.databricks.com/en/data-governance/unity-catalog/enable-workspaces.html#enable-your-workspace-for-unity-catalog" target="_blank"&gt;https://docs.databricks.com/en/data-governance/unity-catalog/enable-workspaces.html#enable-your-workspace-for-unity-catalog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:21:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/42480#M833</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-28T12:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create table with primary key</title>
      <link>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/42481#M834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes enabled . Its working now. I am able to create table with primary key.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:23:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/unable-to-create-table-with-primary-key/m-p/42481#M834</guid>
      <dc:creator>mano7438</dc:creator>
      <dc:date>2023-08-28T12:23:10Z</dc:date>
    </item>
  </channel>
</rss>

