From 3e46d9191a9c6339c4d0d42cf2c800efa9303cf2 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 15 Dec 2023 15:52:10 -0500 Subject: [PATCH] turn on get_catalog by relation capability --- dbt/adapters/redshift/impl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbt/adapters/redshift/impl.py b/dbt/adapters/redshift/impl.py index fbb30c784..854e974f2 100644 --- a/dbt/adapters/redshift/impl.py +++ b/dbt/adapters/redshift/impl.py @@ -5,6 +5,7 @@ from dbt.adapters.base import PythonJobHelper from dbt.adapters.base.impl import AdapterConfig, ConstraintSupport from dbt.adapters.base.meta import available +from dbt.adapters.capability import Capability, CapabilityDict, CapabilitySupport, Support from dbt.adapters.sql import SQLAdapter from dbt.contracts.connection import AdapterResponse from dbt.contracts.graph.nodes import ConstraintType @@ -53,6 +54,10 @@ class RedshiftAdapter(SQLAdapter): ConstraintType.foreign_key: ConstraintSupport.NOT_ENFORCED, } + _capabilities = CapabilityDict( + {Capability.SchemaMetadataByRelations: CapabilitySupport(support=Support.Full)} + ) + @classmethod def date_function(cls): return "getdate()"