-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - enable object entity syntax in metric filters
- Loading branch information
1 parent
ead98b2
commit ccd6665
Showing
3 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
dbt_semantic_interfaces/parsing/where_filter/where_filter_stubs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from dataclasses import dataclass | ||
from typing import Sequence | ||
from typing_extensions import override | ||
from dbt_semantic_interfaces.protocols.protocol_hint import ProtocolHint | ||
from dbt_semantic_interfaces.protocols.query_interface import QueryInterfaceEntity | ||
|
||
|
||
@dataclass | ||
class EntityStub(ProtocolHint[QueryInterfaceEntity]): | ||
"""An Entity implementation that just satisfies the protocol. | ||
QueryInterfaceEntity currently has no methods and the parameter set is created in the factory. | ||
So, there is nothing to do here. | ||
""" | ||
|
||
element_name: str | ||
entity_links: Sequence[str] = () | ||
|
||
@override | ||
def _implements_protocol(self) -> QueryInterfaceEntity: | ||
return self |