<?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: How can I check that column on a delta table has a &amp;quot;NOT NULL&amp;quot; constraint or not? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/143298#M52142</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/203863"&gt;@muki&lt;/a&gt;&amp;nbsp;, you can run&amp;nbsp;&lt;BR /&gt;SHOW CREATE TABLE&amp;nbsp;&lt;SPAN&gt;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and in that also you can also see the constraints applied.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jan 2026 08:11:43 GMT</pubDate>
    <dc:creator>iyashk-DB</dc:creator>
    <dc:date>2026-01-08T08:11:43Z</dc:date>
    <item>
      <title>How can I check that column on a delta table has a "NOT NULL" constraint or not?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/16279#M10480</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Title pretty much says it all -&lt;/P&gt;
&lt;P&gt;I'm trying to determine whether or not a column on my existing delta table was defined as NOT NULL or not. It does not show up in any of the metadata (describe detail, describe history, show tblproperties). &lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 15:30:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/16279#M10480</guid>
      <dc:creator>Lon_Fortes</dc:creator>
      <dc:date>2021-08-18T15:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check that column on a delta table has a "NOT NULL" constraint or not?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/16280#M10481</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I've found a solution, the following scala serves my needs:&lt;/P&gt;val table = spark.table("&amp;lt;database&amp;gt;.&amp;lt;tablename&amp;gt;")
&lt;P&gt;&lt;/P&gt; 
&lt;P&gt;val schema = table.printSchema&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 16:38:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/16280#M10481</guid>
      <dc:creator>Lon_Fortes</dc:creator>
      <dc:date>2021-08-18T16:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check that column on a delta table has a "NOT NULL" constraint or not?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/16281#M10482</link>
      <description>&lt;P&gt;walgreenslistens Wrote:&lt;/P&gt;&lt;P&gt;A UNIQUE constraint defines a set of columns that uniquely identify rows in a table only if all the key values are not NULL. If one or more key parts are NULL, duplicate keys are allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 07:19:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/16281#M10482</guid>
      <dc:creator>Matthew8</dc:creator>
      <dc:date>2021-08-19T07:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check that column on a delta table has a "NOT NULL" constraint or not?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/143256#M52132</link>
      <description>&lt;P&gt;if using python, we can use&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;display&lt;/SPAN&gt;&lt;SPAN&gt;(spark.catalog.&lt;/SPAN&gt;&lt;SPAN&gt;listColumns&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Jan 2026 22:42:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/143256#M52132</guid>
      <dc:creator>muki</dc:creator>
      <dc:date>2026-01-07T22:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I check that column on a delta table has a "NOT NULL" constraint or not?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/143298#M52142</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/203863"&gt;@muki&lt;/a&gt;&amp;nbsp;, you can run&amp;nbsp;&lt;BR /&gt;SHOW CREATE TABLE&amp;nbsp;&lt;SPAN&gt;&amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and in that also you can also see the constraints applied.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 08:11:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-check-that-column-on-a-delta-table-has-a-quot-not-null/m-p/143298#M52142</guid>
      <dc:creator>iyashk-DB</dc:creator>
      <dc:date>2026-01-08T08:11:43Z</dc:date>
    </item>
  </channel>
</rss>

