Skip to content

Commit

Permalink
Add indication for retrieving schema metadata for a list of relations…
Browse files Browse the repository at this point in the history
… and not all
  • Loading branch information
biswasbiplob committed Nov 21, 2024
1 parent bacbe23 commit a3a652a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dbt-athena/src/dbt/adapters/athena/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
from dbt.adapters.base import ConstraintSupport, PythonJobHelper, available
from dbt.adapters.base.impl import AdapterConfig
from dbt.adapters.base.relation import BaseRelation, InformationSchema
from dbt.adapters.capability import Capability, CapabilityDict, CapabilitySupport, Support
from dbt.adapters.contracts.connection import AdapterResponse
from dbt.adapters.contracts.relation import RelationConfig
from dbt.adapters.sql import SQLAdapter
Expand Down Expand Up @@ -146,6 +147,13 @@ class AthenaAdapter(SQLAdapter):
ConstraintType.foreign_key: ConstraintSupport.NOT_SUPPORTED,
}

_capabilities = CapabilityDict(
{
Capability.SchemaMetadataByRelations: CapabilitySupport(support=Support.Full),
Capability.TableLastModifiedMetadata: CapabilitySupport(support=Support.Unknown),
}
)

@classmethod
def date_function(cls) -> str:
return "now()"
Expand Down

0 comments on commit a3a652a

Please sign in to comment.