<?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 Clarification on use_describe_as_json_for_relation_metadata and system.information_schema dependency in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174157#M56804</link>
    <description>&lt;P class=""&gt;Hi Databricks Support Team,&lt;/P&gt;&lt;P class=""&gt;We are evaluating whether dbt can execute successfully without access to system.information_schema in our environment, due to metadata access restrictions.&lt;/P&gt;&lt;P class=""&gt;Our current setup uses:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;dbt-core: 1.12.3&lt;/LI&gt;&lt;LI&gt;dbt-databricks: 1.12.5&lt;/LI&gt;&lt;LI&gt;Configuration: use_describe_as_json_for_relation_metadata: true&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;During our POC, we observed that enabling this flag eliminates certain system.information_schema queries related to column masks and other relation metadata for existing incremental models. These queries are replaced by DESCRIBE TABLE EXTENDED ... AS JSON.&lt;/P&gt;&lt;P class=""&gt;However, our logs show that dbt continues to query system.information_schema.tables for relation discovery across the dbt commands we tested, including model runs, seeds, tests, source freshness, and documentation generation.&lt;/P&gt;&lt;P class=""&gt;When access to system.information_schema is restricted, these operations fail during relation discovery. Our custom drop macro was the exception in our tests.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Could you please clarify the following?&lt;/STRONG&gt;&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Is there a supported configuration, behavior flag, or adapter capability that completely eliminates queries to system.information_schema, including system.information_schema.tables used for relation discovery?&lt;/LI&gt;&lt;LI&gt;Does use_describe_as_json_for_relation_metadata intentionally replace only detailed relation metadata queries (such as constraints, masks, and row filters), while leaving relation discovery through system.information_schema.tables unchanged?&lt;/LI&gt;&lt;LI&gt;If complete elimination is not currently supported, is there a planned enhancement or alternative supported approach that would allow dbt to run without granting the executing principal access to system.information_schema?&lt;/LI&gt;&lt;LI&gt;Is there an officially recommended least-privilege permission model for running dbt in a multi-tenant environment where access to System catalog metadata must be restricted?&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;We would appreciate confirmation of the expected behavior for the versions listed above and any recommended configuration or workaround.&lt;/P&gt;&lt;P class=""&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2026 10:40:34 GMT</pubDate>
    <dc:creator>Aju_Antony</dc:creator>
    <dc:date>2026-10-21T10:40:34Z</dc:date>
    <item>
      <title>Clarification on use_describe_as_json_for_relation_metadata and system.information_schema dependency</title>
      <link>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174157#M56804</link>
      <description>&lt;P class=""&gt;Hi Databricks Support Team,&lt;/P&gt;&lt;P class=""&gt;We are evaluating whether dbt can execute successfully without access to system.information_schema in our environment, due to metadata access restrictions.&lt;/P&gt;&lt;P class=""&gt;Our current setup uses:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;dbt-core: 1.12.3&lt;/LI&gt;&lt;LI&gt;dbt-databricks: 1.12.5&lt;/LI&gt;&lt;LI&gt;Configuration: use_describe_as_json_for_relation_metadata: true&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;During our POC, we observed that enabling this flag eliminates certain system.information_schema queries related to column masks and other relation metadata for existing incremental models. These queries are replaced by DESCRIBE TABLE EXTENDED ... AS JSON.&lt;/P&gt;&lt;P class=""&gt;However, our logs show that dbt continues to query system.information_schema.tables for relation discovery across the dbt commands we tested, including model runs, seeds, tests, source freshness, and documentation generation.&lt;/P&gt;&lt;P class=""&gt;When access to system.information_schema is restricted, these operations fail during relation discovery. Our custom drop macro was the exception in our tests.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Could you please clarify the following?&lt;/STRONG&gt;&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Is there a supported configuration, behavior flag, or adapter capability that completely eliminates queries to system.information_schema, including system.information_schema.tables used for relation discovery?&lt;/LI&gt;&lt;LI&gt;Does use_describe_as_json_for_relation_metadata intentionally replace only detailed relation metadata queries (such as constraints, masks, and row filters), while leaving relation discovery through system.information_schema.tables unchanged?&lt;/LI&gt;&lt;LI&gt;If complete elimination is not currently supported, is there a planned enhancement or alternative supported approach that would allow dbt to run without granting the executing principal access to system.information_schema?&lt;/LI&gt;&lt;LI&gt;Is there an officially recommended least-privilege permission model for running dbt in a multi-tenant environment where access to System catalog metadata must be restricted?&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;We would appreciate confirmation of the expected behavior for the versions listed above and any recommended configuration or workaround.&lt;/P&gt;&lt;P class=""&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2026 10:40:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174157#M56804</guid>
      <dc:creator>Aju_Antony</dc:creator>
      <dc:date>2026-10-21T10:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on use_describe_as_json_for_relation_metadata and system.information_schema depend</title>
      <link>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174203#M56811</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/267544"&gt;@Aju_Antony&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting question!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Short answer: no flag removes it. In dbt-databricks 1.12.x, relation discovery for Unity Catalog is hardcoded to system.information_schema.tables (the get_uc_tables macro), and use_describe_as_json_for_relation_metadata only swaps out the per-relation metadata lookups (masks, constraints etc.) for DESCRIBE TABLE EXTENDED ... AS JSON. So what you observed is the intended behavior. The supported way around it is to override the macro in your own project and point it at the catalog-level information_schema instead.&lt;/P&gt;&lt;P&gt;Where system.information_schema is still used in 1.12.5 (dbt/include/databricks/macros/adapters/):&lt;/P&gt;&lt;P&gt;- metadata.sql -&amp;gt; get_uc_tables_sql (relation discovery, every command)&lt;/P&gt;&lt;P&gt;- metadata.sql -&amp;gt; get_relation_last_modified_sql (source freshness without a loaded_at_field)&lt;/P&gt;&lt;P&gt;- catalog.sql -&amp;gt; databricks__get_catalog_tables_sql / databricks__get_catalog_columns_sql (dbt docs generate)&lt;/P&gt;&lt;P&gt;- tags.sql / column_tags.sql -&amp;gt; only if you use databricks_tags&lt;/P&gt;&lt;P&gt;Override for relation discovery - drop this in macros/get_uc_tables.sql in your dbt project (root-project macros take precedence over the adapter's):&lt;/P&gt;&lt;P&gt;{% macro get_uc_tables_sql(relation) %}&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; table_name,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(table_type IN ('EXTERNAL', 'MANAGED', 'MANAGED_SHALLOW_CLONE', 'EXTERNAL_SHALLOW_CLONE'), 'table', lower(table_type)) AS table_type,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lower(data_source_format) AS file_format,&lt;/P&gt;&lt;P&gt;&amp;nbsp; table_owner,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(table_type IN ('EXTERNAL', 'MANAGED', 'MANAGED_SHALLOW_CLONE', 'EXTERNAL_SHALLOW_CLONE'), lower(table_type), NULL) AS databricks_table_type&lt;/P&gt;&lt;P&gt;FROM {{ relation.database|lower }}.information_schema.tables&lt;/P&gt;&lt;P&gt;WHERE table_schema = '{{ relation.schema|lower }}'&lt;/P&gt;&lt;P&gt;&amp;nbsp; {%- if relation.identifier %}&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND table_name = '{{ relation.identifier|lower }}'&lt;/P&gt;&lt;P&gt;&amp;nbsp; {% endif %}&lt;/P&gt;&lt;P&gt;{% endmacro %}&lt;/P&gt;&lt;P&gt;It's the adapter's own query with only the FROM changed - &amp;lt;catalog&amp;gt;.information_schema.tables has the same columns and only needs USE CATALOG on your own catalog. Do the same FROM swap for the two catalog.sql macros if you need docs generate, and set loaded_at_field on sources so freshness doesn't go through get_relation_last_modified. Re-check these overrides when you upgrade the adapter, since you now own that SQL.&lt;/P&gt;&lt;P&gt;On least privilege: both system.information_schema and the per-catalog information_schema only return rows for objects the querying principal already has privileges on, so allowing the dbt principal to read it doesn't expose other tenants' table names. If your restriction is about visibility rather than a hard policy, that's usually the simpler fix.&lt;/P&gt;&lt;P&gt;Source: &lt;A href="https://github.com/databricks/dbt-databricks/blob/main/dbt/include/databricks/macros/adapters/metadata.sql" target="_blank"&gt;https://github.com/databricks/dbt-databricks/blob/main/dbt/include/databricks/macros/adapters/metadata.sql&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-information-schema" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-information-schema&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2026 17:47:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174203#M56811</guid>
      <dc:creator>SumeshKashyap</dc:creator>
      <dc:date>2026-10-21T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on use_describe_as_json_for_relation_metadata and system.information_schema depend</title>
      <link>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174378#M56845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/267544"&gt;@Aju_Antony&lt;/a&gt;, were you able to try the get_uc_tables_sql override in your POC? Quick way to confirm it works: run dbt run with --debug and check that no query in the log references system.information_schema.&lt;/P&gt;&lt;P&gt;If that unblocked you, please click Accept as Solution so others with the same restriction can find it. If something else still hits system.information_schema, share the macro name from the debug log and I'll point you to the override for it.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2026 22:02:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174378#M56845</guid>
      <dc:creator>SumeshKashyap</dc:creator>
      <dc:date>2026-10-22T22:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on use_describe_as_json_for_relation_metadata and system.information_schema depend</title>
      <link>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174755#M56906</link>
      <description>&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg" data-pm-slice="0 0 []"&gt;Hi, your observations match how the adapter works:&lt;/P&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;STRONG&gt;1. Can you remove all &lt;CODE&gt;system.information_schema&lt;/CODE&gt; queries?&lt;/STRONG&gt; Not today. There's no flag or setting that does it. For Unity Catalog relations, dbt-databricks always lists relations by querying &lt;CODE&gt;system.information_schema.tables&lt;/CODE&gt;. Source freshness on Unity Catalog also reads &lt;CODE&gt;last_altered&lt;/CODE&gt; from it, and docs generation uses it for catalog metadata. Only hive_metastore relations use &lt;CODE&gt;SHOW TABLES&lt;/CODE&gt; / &lt;CODE&gt;SHOW VIEWS&lt;/CODE&gt; instead.&lt;/P&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;STRONG&gt;2. Is &lt;CODE&gt;use_describe_as_json_for_relation_metadata&lt;/CODE&gt; meant to be partial?&lt;/STRONG&gt; Yes. It only replaces the detailed per-relation metadata queries: constraints, column masks, row filters and view definitions. Relation discovery isn't covered by it. It also falls back to &lt;CODE&gt;information_schema&lt;/CODE&gt; per relation when the relation isn't in Unity Catalog, is a foreign table, or the compute isn't a SQL warehouse or DBR 17.3+.&lt;/P&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;STRONG&gt;3. Alternatives&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="wnfdntj" dir="auto"&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;There's an open GitHub issue asking for a way to avoid the system catalog (&lt;A href="https://github.com/databricks/dbt-databricks/issues/838" rel="noopener noreferrer nofollow" target="_blank"&gt;#838&lt;/A&gt;). Adding your use case there is the best way to push it.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;For source freshness, set &lt;CODE&gt;loaded_at_field&lt;/CODE&gt; on your sources. dbt then queries &lt;CODE&gt;max(&amp;lt;column&amp;gt;)&lt;/CODE&gt; on the source table instead of using &lt;CODE&gt;information_schema&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;You could override the &lt;CODE&gt;get_uc_tables_sql&lt;/CODE&gt; macro in your project, but that's unsupported. You'd lose table type, format and owner information unless you rebuild it some other way, and future adapter upgrades may break it. I wouldn't recommend it for production.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;STRONG&gt;4. Least privilege in a multi-tenant setup&lt;/STRONG&gt; The good news: &lt;CODE&gt;system.information_schema&lt;/CODE&gt; filters rows by privilege. Each principal only sees metadata for objects it already has access to in Unity Catalog. So giving a tenant's dbt service principal access doesn't expose other tenants' tables. A minimal setup per tenant:&lt;/P&gt;
&lt;UL class="wnfdntj" dir="auto"&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;CODE&gt;USE CATALOG&lt;/CODE&gt; on &lt;CODE&gt;system&lt;/CODE&gt;, and &lt;CODE&gt;USE SCHEMA&lt;/CODE&gt; on &lt;CODE&gt;system.information_schema&lt;/CODE&gt; only. Don't grant access to other system schemas like &lt;CODE&gt;billing&lt;/CODE&gt; or &lt;CODE&gt;access&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;CODE&gt;USE CATALOG&lt;/CODE&gt;, &lt;CODE&gt;USE SCHEMA&lt;/CODE&gt;, &lt;CODE&gt;CREATE TABLE&lt;/CODE&gt; and &lt;CODE&gt;MODIFY&lt;/CODE&gt; on the tenant's own target catalog or schema.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;CODE&gt;SELECT&lt;/CODE&gt; on the tenant's source tables only.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;That way the principal can only "see" what it's already allowed to touch, which is usually what the metadata restriction is meant to achieve.&lt;/P&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;Docs:&lt;/P&gt;
&lt;UL class="wnfdntj" dir="auto"&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;A href="https://docs.getdbt.com/reference/global-configs/databricks-changes" rel="noopener noreferrer nofollow" target="_blank"&gt;dbt-databricks behavior flags (describe as JSON)&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;A href="https://docs.getdbt.com/docs/platform/connect-data-platform/connect-databricks" rel="noopener noreferrer nofollow" target="_blank"&gt;dbt Databricks connection and required permissions&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-information-schema" rel="noopener noreferrer nofollow" target="_blank"&gt;Information schema permissions&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="wnfdnte _1ibi0s35c" dir="auto"&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&lt;A href="https://github.com/databricks/dbt-databricks/blob/main/dbt/include/databricks/macros/adapters/metadata.sql" rel="noopener noreferrer nofollow" target="_blank"&gt;Adapter metadata macros (source)&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="wnfdnt10 _1ibi0s3fd _1ibi0s3ce _1ibi0s3eg"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2026 12:32:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174755#M56906</guid>
      <dc:creator>datarich</dc:creator>
      <dc:date>2026-10-27T12:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on use_describe_as_json_for_relation_metadata and system.information_schema depend</title>
      <link>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174770#M56909</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/267544"&gt;@Aju_Antony&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spent some time and ran a reproducible validation of this behaviour using &lt;STRONG&gt;dbt-core 1.12.3&lt;/STRONG&gt; and&lt;STRONG&gt; dbt-databricks 1.12.5&lt;/STRONG&gt; on Databricks, both locally against a serverless SQL warehouse and through pinned serverless dbt job tasks.&lt;/P&gt;&lt;P&gt;The results confirm that enabling &lt;STRONG&gt;use_describe_as_json_for_relation_metadata&lt;/STRONG&gt; does not eliminate all &lt;STRONG&gt;system.information_schema&lt;/STRONG&gt; queries. It removed the observed column-mask lookup during an incremental rerun, but relation discovery continued querying &lt;STRONG&gt;system.information_schema.tables.&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Important finding: macro dispatch&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;In this version, overriding only &lt;STRONG&gt;get_uc_tables_sql&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;in the root dbt project was &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;not sufficient&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The replacement SQL worked when the project macro was called directly, but normal dbt commands continued using the adapter's original discovery SQL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The working approach required overriding &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;both&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;get_uc_tables_sql&lt;/STRONG&gt; - redirects discovery SQL to the appropriate catalog-local&lt;STRONG&gt;&amp;nbsp;information_schema.tables.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;get_uc_tables&lt;/STRONG&gt; -&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;copies the adapter's original wrapper implementation into the root project, retaining its call to &lt;STRONG&gt;get_uc_tables_sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;With both overrides in place, normal adapter-initiated relation discovery used the catalog-local information schema.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also validated this with a minimal two-macro configuration, which successfully executed dbt seed,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;initial and incremental model runs, and dbt tests.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Additional metadata paths&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Depending on the dbt operations used, additional metadata paths may need attention:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Source freshness:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; When &lt;STRONG&gt;loaded_at_field&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;is not configured, metadata-based freshness can use &lt;STRONG&gt;get_relation_last_modified_sql&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, which required a separate override in my tests.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Views and tags:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; View descriptions and table/column tags have additional metadata lookup paths that may require overrides.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Documentation generation:&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;dbt docs generate&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;completed successfully in the tests. Some adapter catalog metadata helpers still reference system.information_schema&lt;/SPAN&gt;&lt;SPAN&gt;, so these paths should be checked if used.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The required overrides depend on which metadata operations your project exercises.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Validation observations&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Have validated the behaviour across multiple configurations, starting with the stock adapter, then enabling the JSON metadata flag, applying the SQL helper override, and finally testing the expanded project-level overrides.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The tests covered relation discovery, seed loading, initial and incremental model runs, dbt tests, source freshness, documentation generation and relevant metadata retrieval paths.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A few observations from the investigation:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;JSON metadata flag alone:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Reduced certain metadata queries but did not eliminate &lt;STRONG&gt;system.information_schema&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;references during normal dbt operations.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;SQL helper override alone:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Redirected direct macro calls, but adapter-originated relation discovery continued using the original system-level query.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Discovery wrapper + SQL helper:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Successfully redirected relation discovery to the catalog-local information schema during normal dbt executions.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;SPAN&gt;Expanded overrides:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Completed the tested workflows without any observed queries to&amp;nbsp;&lt;STRONG&gt;system.information_schema&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, as verified against executed SQL and Databricks query history.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Have also compared metadata returned through catalog-local and system-level information schemas. Table, column and view metadata matched for the tested objects.&lt;/P&gt;&lt;P&gt;These observations were reproduced using both local dbt execution against a &lt;STRONG&gt;serverless SQL warehouse&lt;/STRONG&gt; and &lt;STRONG&gt;Databricks serverless dbt job tasks&lt;/STRONG&gt;, with additional metadata diagnostics performed locally.&lt;/P&gt;&lt;P&gt;The results demonstrate that the workaround is technically viable for the tested adapter version and operations.&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Important limitation&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;This establishes a workable &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;project-level metadata redirection technique for the tested dbt-databricks version&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, not an universal solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Although have tested with a dedicated&lt;STRONG&gt; non-admin OAuth service principal&lt;/STRONG&gt;, it could still query both metadata namespaces. So, could not reproduce the restricted-access condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Therefore, the workaround should be validated using the actual restricted principal before adopting it in production. The results apply to the tested dbt-databricks version and execution paths.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The key takeaway is that &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;the SQL helper override alone was not enough in 1.12.5,&amp;nbsp; the corresponding discovery wrapper was necessary for normal dbt command execution in our environment.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2026 15:07:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/clarification-on-use-describe-as-json-for-relation-metadata-and/m-p/174770#M56909</guid>
      <dc:creator>data_pulse</dc:creator>
      <dc:date>2026-10-27T15:07:28Z</dc:date>
    </item>
  </channel>
</rss>

