Skip to content

Commit

Permalink
add feature flag to turn on relation filtering for get_catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 4, 2023
1 parent 3b7dbff commit 08212d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dbt/adapters/snowflake/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import agate

from dbt.adapters.base.impl import AdapterConfig, ConstraintSupport # type: ignore
from dbt.adapters.base.impl import AdapterConfig, AdapterFeature, ConstraintSupport # type: ignore
from dbt.adapters.base.meta import available
from dbt.adapters.sql import SQLAdapter # type: ignore
from dbt.adapters.sql.impl import (
Expand Down Expand Up @@ -256,6 +256,10 @@ def submit_python_job(self, parsed_model: dict, compiled_code: str):
def valid_incremental_strategies(self):
return ["append", "merge", "delete+insert"]

@classmethod
def has_feature(cls, feature: AdapterFeature) -> bool:
return feature in [AdapterFeature.CatalogByRelations]

def debug_query(self):
"""Override for DebugTask method"""
self.execute("select 1 as id")

0 comments on commit 08212d2

Please sign in to comment.