From ade783329188960b1e571bb33737a2ac13469669 Mon Sep 17 00:00:00 2001 From: sachinthakur96 Date: Wed, 29 Nov 2023 21:06:44 +0530 Subject: [PATCH] Adding --- dbt/adapters/vertica/impl.py | 8 ++++++++ setup.py | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dbt/adapters/vertica/impl.py b/dbt/adapters/vertica/impl.py index 8acad00..af96e9b 100644 --- a/dbt/adapters/vertica/impl.py +++ b/dbt/adapters/vertica/impl.py @@ -18,6 +18,8 @@ #from dbt.adapters.vertica import VerticaRelation #from dbt.adapters.vertica import VerticaColumn from typing import Mapping, Any, Optional, List, Union, Dict + +from dbt.adapters.capability import CapabilityDict, CapabilitySupport, Support, Capability from dbt.adapters.base import available from dbt.exceptions import ( @@ -65,6 +67,12 @@ class verticaAdapter(SQLAdapter): ConstraintType.foreign_key: ConstraintSupport.NOT_ENFORCED, } + _capabilities: CapabilityDict = CapabilityDict( + { + Capability.SchemaMetadataByRelations: CapabilitySupport(support=Support.Full), + Capability.TableLastModifiedMetadata: CapabilitySupport(support=Support.Full), + } + ) @classmethod def date_function(cls): diff --git a/setup.py b/setup.py index 08af162..0143d67 100644 --- a/setup.py +++ b/setup.py @@ -78,7 +78,7 @@ def _get_dbt_core_version(): package_name = "dbt-vertica" -package_version = "1.6.0" +package_version = "1.7.0" description = """Official vertica adapter plugin for dbt (data build tool)""" dbt_core_version = _get_dbt_core_version() @@ -110,10 +110,10 @@ def _get_dbt_core_version(): ] }, install_requires=[ - 'dbt-core==1.6.0', + 'dbt-core==1.7.0', # "dbt-core~={}".format(dbt_core_version), 'vertica-python>=1.1.0', - 'dbt-tests-adapter==1.6.0', + 'dbt-tests-adapter==1.7.0', 'python-dotenv==0.21.1', ], classifiers=[