<?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: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17266#M11294</link>
    <description>&lt;P&gt;If you are using Delta Live Table pipelines, the pipeline will check dependencies via the table_constraint using the primary and foreign key definitions and use that to update tables in the proper order to ensure referential integrity.  So though not strongly enforced for performance reasons you still get the main benefit of keys when using pipelines. @Qi Su​&amp;nbsp;correct me if I'm off here.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 20:06:09 GMT</pubDate>
    <dc:creator>Justin_Stuparit</dc:creator>
    <dc:date>2022-10-26T20:06:09Z</dc:date>
    <item>
      <title>Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17254#M11282</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please suggest how can we implement Referential Integrity (Primary Key / Foreign Key Constraint) - between different tables defined on Azure Databricks Database.&lt;/P&gt;
&lt;P&gt;Basically the syntax to add Primary and Foreign Key constraint in the table definitions.&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Abhishek&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 14:32:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17254#M11282</guid>
      <dc:creator>AbhishekBreeks</dc:creator>
      <dc:date>2021-07-28T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17255#M11283</link>
      <description>&lt;P&gt;You can use constraints: &lt;A href="https://docs.microsoft.com/en-us/azure/databricks/delta/delta-constraints" target="test_blank"&gt;https://docs.microsoft.com/en-us/azure/databricks/delta/delta-constraints&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 19:58:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17255#M11283</guid>
      <dc:creator>franco_patano</dc:creator>
      <dc:date>2021-09-02T19:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17256#M11284</link>
      <description>&lt;P&gt;according to the docs delta only has not-null and check constraints.&lt;/P&gt;&lt;P&gt;PK/FK constraint support is not mentioned.&lt;/P&gt;&lt;P&gt;Also: &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/SPARK-19842" target="test_blank"&gt;https://issues.apache.org/jira/browse/SPARK-19842&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm afraid that it is not yet possible.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 13:21:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17256#M11284</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-09-03T13:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17257#M11285</link>
      <description>&lt;P&gt;@Werner Stinckens​&amp;nbsp;Hii! I just posted similar question for my project..Can we do pk/fk constraints on delta tables now?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 17:55:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17257#M11285</guid>
      <dc:creator>Ruby8376</dc:creator>
      <dc:date>2022-05-24T17:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17258#M11286</link>
      <description>&lt;P&gt;nothing has changed so far.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:22:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17258#M11286</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-05-25T06:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17259#M11287</link>
      <description>&lt;P&gt;We have this in  preview &lt;/P&gt;&lt;P&gt;Azure: &lt;A href="https://docs.microsoft.com/en-us/azure/databricks/spark/latest/spark-sql/language-manual/sql-ref-syntax-ddl-create-table-constraint" target="test_blank"&gt;https://docs.microsoft.com/en-us/azure/databricks/spark/latest/spark-sql/language-manual/sql-ref-syntax-ddl-create-table-constraint&lt;/A&gt; &lt;/P&gt;&lt;P&gt;AWS : &lt;A href="https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-ddl-create-table-constraint.html" target="test_blank"&gt;https://docs.databricks.com/spark/latest/spark-sql/language-manual/sql-ref-syntax-ddl-create-table-constraint.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 08:29:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17259#M11287</guid>
      <dc:creator>Dr_G-Guillermo</dc:creator>
      <dc:date>2022-08-15T08:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17260#M11288</link>
      <description>&lt;P&gt;Is it sad that I was excited to see that in preview, lol&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 04:31:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17260#M11288</guid>
      <dc:creator>dosborne</dc:creator>
      <dc:date>2022-08-16T04:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17261#M11289</link>
      <description>&lt;P&gt;The links indicate it would be just informational, so not enforced?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2461i5431DDB1E96400A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 18:12:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17261#M11289</guid>
      <dc:creator>TheOptimizer</dc:creator>
      <dc:date>2022-10-14T18:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17262#M11290</link>
      <description>&lt;P&gt;Is there any alternate way you could suggest to implement and enforce primary key constraint?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 08:13:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17262#M11290</guid>
      <dc:creator>elgeo</dc:creator>
      <dc:date>2022-10-17T08:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Referential Integrity (Primary Key / Foreign Key Constraint) - Azure Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17266#M11294</link>
      <description>&lt;P&gt;If you are using Delta Live Table pipelines, the pipeline will check dependencies via the table_constraint using the primary and foreign key definitions and use that to update tables in the proper order to ensure referential integrity.  So though not strongly enforced for performance reasons you still get the main benefit of keys when using pipelines. @Qi Su​&amp;nbsp;correct me if I'm off here.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 20:06:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/referential-integrity-primary-key-foreign-key-constraint-azure/m-p/17266#M11294</guid>
      <dc:creator>Justin_Stuparit</dc:creator>
      <dc:date>2022-10-26T20:06:09Z</dc:date>
    </item>
  </channel>
</rss>

