<?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: ParseException:  mismatched input 'PRIMARY' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36764#M26192</link>
    <description>&lt;P&gt;Hello erigaud,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer, had the same issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 12:31:03 GMT</pubDate>
    <dc:creator>BriceBuso</dc:creator>
    <dc:date>2023-07-03T12:31:03Z</dc:date>
    <item>
      <title>ParseException:  mismatched input 'PRIMARY'</title>
      <link>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36472#M26134</link>
      <description>&lt;P&gt;I got parseException issue and I have no idea what cause the problem:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;ParseException&lt;/SPAN&gt;&lt;SPAN&gt;: mismatched input 'PRIMARY' expecting {')', ',', 'CONSTRAINT'}(line 2, pos 44)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;== SQL == &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CREATE TABLE persons(first_name STRING NOT NULL, last_name STRING NOT NULL, nickname STRING, CONSTRAINT person_pk PRIMARY KEY (first_name, last_name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--------------------------------------------^^^ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:34:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36472#M26134</guid>
      <dc:creator>Hongbo</dc:creator>
      <dc:date>2023-06-30T13:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: ParseException:  mismatched input 'PRIMARY'</title>
      <link>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36496#M26147</link>
      <description>&lt;P&gt;I think the issue is&amp;nbsp;&lt;SPAN&gt;Only CHECK constraints are currently supported&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 17:41:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36496#M26147</guid>
      <dc:creator>Hongbo</dc:creator>
      <dc:date>2023-06-30T17:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: ParseException:  mismatched input 'PRIMARY'</title>
      <link>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36763#M26191</link>
      <description>&lt;P&gt;You can only declare Primary and foreign keys on fields on &lt;STRONG&gt;Unity Catalog&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You also need Databricks Runtime 11.1+&lt;/P&gt;&lt;P&gt;Otherwise only NOT NULL and CHECK constraints are supported.&lt;/P&gt;&lt;P&gt;More info : &lt;A href="https://docs.databricks.com/tables/constraints.html" target="_blank"&gt;https://docs.databricks.com/tables/constraints.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 12:29:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36763#M26191</guid>
      <dc:creator>erigaud</dc:creator>
      <dc:date>2023-07-03T12:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: ParseException:  mismatched input 'PRIMARY'</title>
      <link>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36764#M26192</link>
      <description>&lt;P&gt;Hello erigaud,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer, had the same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 12:31:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/parseexception-mismatched-input-primary/m-p/36764#M26192</guid>
      <dc:creator>BriceBuso</dc:creator>
      <dc:date>2023-07-03T12:31:03Z</dc:date>
    </item>
  </channel>
</rss>

