Skip to content

Commit

Permalink
Update snapshots to include spec -> element set updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Apr 26, 2024
1 parent d31029e commit 76a11f9
Show file tree
Hide file tree
Showing 20 changed files with 483 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
GroupByItemResolution(
spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GroupByItemResolution(
linkable_element_set=LinkableElementSet(),
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoCommonItemsInParents(
Expand All @@ -11,11 +12,24 @@ GroupByItemResolution(
),
parent_candidate_sets=(
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=MONTH,
),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
measure_paths=(
MetricFlowQueryResolutionPath(
Expand All @@ -36,11 +50,24 @@ GroupByItemResolution(
),
),
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=YEAR,
),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=YEAR,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='yearly_measure_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=YEAR,
),
),
},
),
measure_paths=(
MetricFlowQueryResolutionPath(
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
GroupByItemResolution(
spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GroupByItemResolution(
linkable_element_set=LinkableElementSet(),
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoCommonItemsInParents(
Expand All @@ -8,11 +9,24 @@ GroupByItemResolution(
),
parent_candidate_sets=(
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=MONTH,
),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
measure_paths=(
MetricFlowQueryResolutionPath(
Expand All @@ -31,11 +45,24 @@ GroupByItemResolution(
),
),
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=YEAR,
),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=YEAR,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='yearly_measure_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=YEAR,
),
),
},
),
measure_paths=(
MetricFlowQueryResolutionPath(
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
GroupByItemResolution(
spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
)
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=DAY))
GroupByItemResolution(
spec=TimeDimensionSpec(element_name='metric_time', time_granularity=DAY),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=DAY,
): (
LinkableDimension(
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=DAY,
),
),
},
),
)
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
GroupByItemResolution(
spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GroupByItemResolution(
linkable_element_set=LinkableElementSet(),
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoMatchingItemsForMeasure(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
GroupByItemResolution(
linkable_element_set=LinkableElementSet(),
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoMatchingItemsForMeasure(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,25 @@ FilterSpecResolutionLookUp(
),
],
),
resolved_spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH),
resolved_linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
spec_pattern=TimeDimensionPattern(
parameter_set=EntityLinkPatternParameterSet(
fields_to_compare=(DATE_PART, ELEMENT_NAME, ENTITY_LINKS),
Expand Down Expand Up @@ -60,7 +78,25 @@ FilterSpecResolutionLookUp(
),
],
),
resolved_spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH),
resolved_linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
spec_pattern=TimeDimensionPattern(
parameter_set=EntityLinkPatternParameterSet(
fields_to_compare=(DATE_PART, ELEMENT_NAME, ENTITY_LINKS),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ FilterSpecResolutionLookUp(
),
],
),
resolved_linkable_element_set=LinkableElementSet(),
spec_pattern=TimeDimensionPattern(
parameter_set=EntityLinkPatternParameterSet(
fields_to_compare=(DATE_PART, ELEMENT_NAME, ENTITY_LINKS),
Expand All @@ -40,11 +41,24 @@ FilterSpecResolutionLookUp(
),
parent_candidate_sets=(
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=MONTH,
),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=MONTH,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='monthly_measures_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=MONTH,
),
),
},
),
measure_paths=(
MetricFlowQueryResolutionPath(
Expand All @@ -65,11 +79,24 @@ FilterSpecResolutionLookUp(
),
),
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=YEAR,
),
linkable_element_set=LinkableElementSet(
path_key_to_linkable_dimensions={
ElementPathKey(
element_name='metric_time',
element_type=TIME_DIMENSION,
time_granularity=YEAR,
): (
LinkableDimension(
semantic_model_origin=SemanticModelReference(
semantic_model_name='yearly_measure_source',
),
element_name='metric_time',
dimension_type=TIME,
properties=frozenset({<LinkableElementProperty.METRIC_TIME: 'metric_time'>}),
time_granularity=YEAR,
),
),
},
),
measure_paths=(
MetricFlowQueryResolutionPath(
Expand Down
Loading

0 comments on commit 76a11f9

Please sign in to comment.