<?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 unity catalog information schema columns metadata out of sync with table - cant refresh in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/unity-catalog-information-schema-columns-metadata-out-of-sync/m-p/75253#M1398</link>
    <description>&lt;P&gt;I'm using unity catalog&lt;/P&gt;&lt;P&gt;I've changed the schema of my table by overwriting it with a newer file&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    df.write \
        .format('delta') \
        .partitionBy(partitionColumn) \
        .mode("overwrite") \
        .option("overwriteSchema", "true") \
        .save(destinationPath)&lt;/LI-CODE&gt;&lt;P&gt;queries to information_schema.columns within the catalog and from system.information_schema.columns both return the previous schema not the current one&lt;/P&gt;&lt;P&gt;The databricks gui catalog browser also shows the wrong columns&lt;/P&gt;&lt;P&gt;This is bad as many third party data viz and integration tools and code rely on querying information schema&lt;/P&gt;&lt;P&gt;How can i force databricks to show the correct metadata&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 03:36:16 GMT</pubDate>
    <dc:creator>jakubk</dc:creator>
    <dc:date>2024-06-21T03:36:16Z</dc:date>
    <item>
      <title>unity catalog information schema columns metadata out of sync with table - cant refresh</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/unity-catalog-information-schema-columns-metadata-out-of-sync/m-p/75253#M1398</link>
      <description>&lt;P&gt;I'm using unity catalog&lt;/P&gt;&lt;P&gt;I've changed the schema of my table by overwriting it with a newer file&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    df.write \
        .format('delta') \
        .partitionBy(partitionColumn) \
        .mode("overwrite") \
        .option("overwriteSchema", "true") \
        .save(destinationPath)&lt;/LI-CODE&gt;&lt;P&gt;queries to information_schema.columns within the catalog and from system.information_schema.columns both return the previous schema not the current one&lt;/P&gt;&lt;P&gt;The databricks gui catalog browser also shows the wrong columns&lt;/P&gt;&lt;P&gt;This is bad as many third party data viz and integration tools and code rely on querying information schema&lt;/P&gt;&lt;P&gt;How can i force databricks to show the correct metadata&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 03:36:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/unity-catalog-information-schema-columns-metadata-out-of-sync/m-p/75253#M1398</guid>
      <dc:creator>jakubk</dc:creator>
      <dc:date>2024-06-21T03:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: unity catalog information schema columns metadata out of sync with table - cant refresh</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/unity-catalog-information-schema-columns-metadata-out-of-sync/m-p/75265#M1400</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/43073"&gt;@jakubk&lt;/a&gt;&amp;nbsp;Try running&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REPAIR TABLE &amp;lt;table_name&amp;gt; SYNC METADATA&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 06:45:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/unity-catalog-information-schema-columns-metadata-out-of-sync/m-p/75265#M1400</guid>
      <dc:creator>daniel_sahal</dc:creator>
      <dc:date>2024-06-21T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: unity catalog information schema columns metadata out of sync with table - cant refresh</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/unity-catalog-information-schema-columns-metadata-out-of-sync/m-p/75655#M1410</link>
      <description>&lt;P&gt;Thanks Daniel, that worked&lt;/P&gt;&lt;P&gt;i also had a workaround going with an alter table set tblproperties (optimizewrite = true) which I have set as a default anyway. But just touching the table triggered a metadata refresh&lt;/P&gt;&lt;P&gt;i prefer your command tho as that is its primary purpose&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 04:03:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/unity-catalog-information-schema-columns-metadata-out-of-sync/m-p/75655#M1410</guid>
      <dc:creator>jakubk</dc:creator>
      <dc:date>2024-06-25T04:03:42Z</dc:date>
    </item>
  </channel>
</rss>

