Skip to content

Commit

Permalink
simplify initial imlementation until we get a real behavior flag to i…
Browse files Browse the repository at this point in the history
…mplement
  • Loading branch information
mikealfare committed Aug 18, 2024
1 parent 97545d8 commit a858aa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 7 additions & 4 deletions dbt/adapters/base/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
InformationSchema,
SchemaSearchMap,
)
from dbt.adapters.behavior_flags import flags as base_flags
from dbt.adapters.cache import RelationsCache, _make_ref_key_dict
from dbt.adapters.capability import Capability, CapabilityDict
from dbt.adapters.contracts.connection import Credentials
Expand Down Expand Up @@ -295,11 +294,15 @@ def set_macro_context_generator(
self._macro_context_generator = macro_context_generator

def register_behavior_flags(self) -> Behavior:
behavior_flags = base_flags.copy()
behavior_flags.extend(self._include_behavior_flags())
return register(behavior_flags, self.config.flags)
"""
Collect all raw behavior flags and produce a behavior namespace
"""
return register(self._include_behavior_flags(), self.config.flags)

def _include_behavior_flags(self) -> List[RawBehaviorFlag]:
"""
An optional abstract method that concrete adapters can use to inject platform-specific behavior flags
"""
return []

###
Expand Down
6 changes: 0 additions & 6 deletions dbt/adapters/behavior_flags.py

This file was deleted.

0 comments on commit a858aa3

Please sign in to comment.