From 4a80710d796af37770bc79479edbf3c112a2215d Mon Sep 17 00:00:00 2001 From: Will Deng Date: Tue, 30 Jan 2024 15:32:05 -0500 Subject: [PATCH] add exports to MFE SavedQuery object --- metricflow/engine/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metricflow/engine/models.py b/metricflow/engine/models.py index 3dda8aed5a..d3431df768 100644 --- a/metricflow/engine/models.py +++ b/metricflow/engine/models.py @@ -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 @@ -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: @@ -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, )