Skip to content

Commit

Permalink
add exports to MFE SavedQuery object
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Jan 30, 2024
1 parent 63bf526 commit 4a80710
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metricflow/engine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
DimensionTypeParams,
)
from dbt_semantic_interfaces.protocols.entity import Entity as SemanticManifestEntity
from dbt_semantic_interfaces.protocols.export import Export
from dbt_semantic_interfaces.protocols.measure import MeasureAggregationParameters
from dbt_semantic_interfaces.protocols.metadata import Metadata
from dbt_semantic_interfaces.protocols.metric import Metric as SemanticManifestMetric
Expand Down Expand Up @@ -165,6 +166,7 @@ class SavedQuery:
label: Optional[str]
query_params: SavedQueryQueryParams
metadata: Optional[Metadata]
exports: Sequence[Export]

@classmethod
def from_pydantic(cls, pydantic_saved_query: SemanticManifestSavedQuery) -> SavedQuery:
Expand All @@ -175,4 +177,5 @@ def from_pydantic(cls, pydantic_saved_query: SemanticManifestSavedQuery) -> Save
label=pydantic_saved_query.label,
query_params=pydantic_saved_query.query_params,
metadata=pydantic_saved_query.metadata,
exports=pydantic_saved_query.exports,
)

0 comments on commit 4a80710

Please sign in to comment.