<?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 Url column issue in UC information_schema.schemata view definition in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/url-column-issue-in-uc-information-schema-schemata-view/m-p/56652#M30612</link>
    <description>&lt;P&gt;Hi, I recently observed that, after creating a new catalog (without a managed location) in Unity Catalog, a column named 'url' is included in the definition of the information_schema.schemata view.&lt;/P&gt;&lt;P&gt;However, there is no url column in the underlying table system.information_schema.schemata, causing queries on the schemata view to fail.&lt;/P&gt;&lt;P&gt;The view definitions of schemata views in catalogs created a few months ago do not contain the url column.&lt;/P&gt;&lt;P&gt;I cannot find an explanation for this change in the Databricks documentation. Can anyone advise if I am doing something wrong?&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE CATALOG testcatalog

SHOW CREATE TABLE testcatalog.information_schema.schemata
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CREATE VIEW information_schema.schemata (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;catalog_name COMMENT 'Catalog containing the schema.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;schema_name COMMENT 'Name of the schema.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;schema_owner COMMENT 'User or group (principal) that currently owns the schema.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;comment COMMENT 'An optional comment that describes the relation.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;created COMMENT 'Timestamp when the relation was created.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;created_by COMMENT 'Principal which created the relation.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;last_altered COMMENT 'Timestamp when the relation definition was last altered in any way.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;last_altered_by COMMENT 'Principal which last altered the relation.',&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;url COMMENT 'The external location where the schema was stored'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;COMMENT 'Describes schemas within the catalog.'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AS SELECT * FROM system.information_schema.schemata WHERE catalog_name = 'testcatalog'&lt;/EM&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;LI-CODE lang="markup"&gt;SELECT * FROM testcatalog.information_schema.schemata&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[INCOMPATIBLE_VIEW_SCHEMA_CHANGE] The SQL query of view `testcatalog`.`information_schema`.`schemata` has an incompatible schema change and column url cannot be resolved. Expected 1 columns named url but got [].&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Please try to re-create the view by running: CREATE OR REPLACE VIEW testcatalog.information_schema.schemata AS SELECT * FROM system.information_schema.schemata WHERE catalog_name = 'testcatalog'.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 12:50:46 GMT</pubDate>
    <dc:creator>gardener</dc:creator>
    <dc:date>2024-01-08T12:50:46Z</dc:date>
    <item>
      <title>Url column issue in UC information_schema.schemata view definition</title>
      <link>https://community.databricks.com/t5/data-engineering/url-column-issue-in-uc-information-schema-schemata-view/m-p/56652#M30612</link>
      <description>&lt;P&gt;Hi, I recently observed that, after creating a new catalog (without a managed location) in Unity Catalog, a column named 'url' is included in the definition of the information_schema.schemata view.&lt;/P&gt;&lt;P&gt;However, there is no url column in the underlying table system.information_schema.schemata, causing queries on the schemata view to fail.&lt;/P&gt;&lt;P&gt;The view definitions of schemata views in catalogs created a few months ago do not contain the url column.&lt;/P&gt;&lt;P&gt;I cannot find an explanation for this change in the Databricks documentation. Can anyone advise if I am doing something wrong?&lt;/P&gt;&lt;P&gt;An example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE CATALOG testcatalog

SHOW CREATE TABLE testcatalog.information_schema.schemata
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CREATE VIEW information_schema.schemata (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;catalog_name COMMENT 'Catalog containing the schema.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;schema_name COMMENT 'Name of the schema.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;schema_owner COMMENT 'User or group (principal) that currently owns the schema.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;comment COMMENT 'An optional comment that describes the relation.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;created COMMENT 'Timestamp when the relation was created.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;created_by COMMENT 'Principal which created the relation.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;last_altered COMMENT 'Timestamp when the relation definition was last altered in any way.',&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;last_altered_by COMMENT 'Principal which last altered the relation.',&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;url COMMENT 'The external location where the schema was stored'&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;COMMENT 'Describes schemas within the catalog.'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AS SELECT * FROM system.information_schema.schemata WHERE catalog_name = 'testcatalog'&lt;/EM&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;LI-CODE lang="markup"&gt;SELECT * FROM testcatalog.information_schema.schemata&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[INCOMPATIBLE_VIEW_SCHEMA_CHANGE] The SQL query of view `testcatalog`.`information_schema`.`schemata` has an incompatible schema change and column url cannot be resolved. Expected 1 columns named url but got [].&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Please try to re-create the view by running: CREATE OR REPLACE VIEW testcatalog.information_schema.schemata AS SELECT * FROM system.information_schema.schemata WHERE catalog_name = 'testcatalog'.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 12:50:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/url-column-issue-in-uc-information-schema-schemata-view/m-p/56652#M30612</guid>
      <dc:creator>gardener</dc:creator>
      <dc:date>2024-01-08T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Url column issue in UC information_schema.schemata view definition</title>
      <link>https://community.databricks.com/t5/data-engineering/url-column-issue-in-uc-information-schema-schemata-view/m-p/56781#M30643</link>
      <description>&lt;P&gt;Hi, re-creating the view is unfortunately not possible because it is system owned.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE OR REPLACE VIEW testcatalog.information_schema.schemata AS SELECT * FROM system.information_schema.schemata WHERE catalog_name = 'testcatalog'&lt;/LI-CODE&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[CANNOT_DELETE_SYSTEM_OWNED] System owned table cannot be deleted.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Obviously, there's a workaround to query the underlying schemata table in the system catalog directly instead of the schemata view in the testcatalog:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT * FROM system.information_schema.schemata WHERE catalog_name = 'testcatalog'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 15:03:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/url-column-issue-in-uc-information-schema-schemata-view/m-p/56781#M30643</guid>
      <dc:creator>gardener</dc:creator>
      <dc:date>2024-01-09T15:03:31Z</dc:date>
    </item>
  </channel>
</rss>

