Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Jun 6, 2024
1 parent a0458f6 commit 728cc91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
from dbt_semantic_interfaces.type_enums import DatePart, TimeGranularity


# Rename these factories: RenderedWhereFilterEntityFactory (MF) vs. ParsedWhereFilterParser (DSI)
# Add protocols back. Rename them to: WhereFilterEntity (JinjaWhereFilterEntity? Can we reuse them in the JDBC interface & saved queries?),
# JinjaEntityFactory (do we even need a protocol for this? I guess to make sure the create() method is aligned?)
# Can we use an ABC instead of a protocol? Something that lets me add functional methods to the base class to avoid duplication.
class WhereFilterEntityFactory:
"""Executes in the Jinja sandbox to produce parameter sets and append them to a list."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ metric:
type_params:
measure:
name: listings
filter: "{{ Metric('bookings', group_by=['listing']) }} > 2"
filter: "{{ Metric('bookings', sup=['listing']) }} > 2"
---
metric:
name: "active_listings"
Expand Down

0 comments on commit 728cc91

Please sign in to comment.