Skip to content

Commit

Permalink
Add snapshots for GroupByItemResolver tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Dec 16, 2023
1 parent aed026a commit fe807f2
Show file tree
Hide file tree
Showing 16 changed files with 270 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
"TimeDimension('metric_time', 'month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'year')",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["TimeDimension('metric_time', 'year')", "TimeDimension('metric_time', 'year', date_part_name='year')"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
"TimeDimension('metric_time', 'month')",
"TimeDimension('metric_time', 'month', date_part_name='month')",
"TimeDimension('metric_time', 'month', date_part_name='quarter')",
"TimeDimension('metric_time', 'month', date_part_name='year')",
"TimeDimension('metric_time', 'quarter')",
"TimeDimension('metric_time', 'quarter', date_part_name='quarter')",
"TimeDimension('metric_time', 'quarter', date_part_name='year')",
"TimeDimension('metric_time', 'year')",
"TimeDimension('metric_time', 'year', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year', date_part_name='year')",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["TimeDimension('metric_time', 'year')", "TimeDimension('metric_time', 'year', date_part_name='year')"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
"TimeDimension('metric_time', 'month')",
"TimeDimension('metric_time', 'month', date_part_name='month')",
"TimeDimension('metric_time', 'month', date_part_name='quarter')",
"TimeDimension('metric_time', 'month', date_part_name='year')",
"TimeDimension('metric_time', 'quarter')",
"TimeDimension('metric_time', 'quarter', date_part_name='quarter')",
"TimeDimension('metric_time', 'quarter', date_part_name='year')",
"TimeDimension('metric_time', 'year')",
"TimeDimension('metric_time', 'year', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year', date_part_name='year')",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
"TimeDimension('monthly_measure_entity__creation_time', 'month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year', date_part_name='year')",
"TimeDimension('yearly_measure_entity__creation_time', 'year')",
"TimeDimension('yearly_measure_entity__creation_time', 'year', date_part_name='year')",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
"TimeDimension('metric_time', 'month')",
"TimeDimension('metric_time', 'month', date_part_name='month')",
"TimeDimension('metric_time', 'month', date_part_name='quarter')",
"TimeDimension('metric_time', 'month', date_part_name='year')",
"TimeDimension('metric_time', 'quarter')",
"TimeDimension('metric_time', 'quarter', date_part_name='quarter')",
"TimeDimension('metric_time', 'quarter', date_part_name='year')",
"TimeDimension('metric_time', 'year')",
"TimeDimension('metric_time', 'year', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='month')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'month', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='quarter')",
"TimeDimension('monthly_measure_entity__creation_time', 'quarter', date_part_name='year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year')",
"TimeDimension('monthly_measure_entity__creation_time', 'year', date_part_name='year')",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
GroupByItemResolution(
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoCommonItemsInParents(
issue_type=ERROR,
query_resolution_path=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_5),
MetricGroupByItemResolutionNode(node_id=mtr_10),
),
),
parent_candidate_sets=(
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=MONTH,
),
),
measure_paths=(
MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_5),
MetricGroupByItemResolutionNode(node_id=mtr_10),
MetricGroupByItemResolutionNode(node_id=mtr_8),
MeasureGroupByItemSourceNode(node_id=msr_7),
),
),
),
path_from_leaf_node=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_5),
MetricGroupByItemResolutionNode(node_id=mtr_10),
MetricGroupByItemResolutionNode(node_id=mtr_8),
),
),
),
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=YEAR,
),
),
measure_paths=(
MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_5),
MetricGroupByItemResolutionNode(node_id=mtr_10),
MetricGroupByItemResolutionNode(node_id=mtr_9),
MeasureGroupByItemSourceNode(node_id=msr_8),
),
),
),
path_from_leaf_node=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_5),
MetricGroupByItemResolutionNode(node_id=mtr_10),
MetricGroupByItemResolutionNode(node_id=mtr_9),
),
),
),
),
),
),
),
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
GroupByItemResolution(
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoCommonItemsInParents(
issue_type=ERROR,
query_resolution_path=MetricFlowQueryResolutionPath(
resolution_path_nodes=(QueryGroupByItemResolutionNode(node_id=qr_3),),
),
parent_candidate_sets=(
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=MONTH,
),
),
measure_paths=(
MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_3),
MetricGroupByItemResolutionNode(node_id=mtr_3),
MeasureGroupByItemSourceNode(node_id=msr_3),
),
),
),
path_from_leaf_node=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_3),
MetricGroupByItemResolutionNode(node_id=mtr_3),
),
),
),
GroupByItemCandidateSet(
specs=(
TimeDimensionSpec(
element_name='metric_time',
time_granularity=YEAR,
),
),
measure_paths=(
MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_3),
MetricGroupByItemResolutionNode(node_id=mtr_4),
MeasureGroupByItemSourceNode(node_id=msr_4),
),
),
),
path_from_leaf_node=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_3),
MetricGroupByItemResolutionNode(node_id=mtr_4),
),
),
),
),
),
),
),
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
GroupByItemResolution(
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoMatchingItemsForNoMetricsQuery(
issue_type=ERROR,
query_resolution_path=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_0),
NoMetricsGroupByItemSourceNode(node_id=vr_0),
),
),
),
),
),
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GroupByItemResolution(spec=TimeDimensionSpec(element_name='metric_time', time_granularity=MONTH))
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
GroupByItemResolution(
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoMatchingItemsForMeasure(
issue_type=ERROR,
query_resolution_path=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_3),
MetricGroupByItemResolutionNode(node_id=mtr_3),
MeasureGroupByItemSourceNode(node_id=msr_3),
),
),
),
NoMatchingItemsForMeasure(
issue_type=ERROR,
query_resolution_path=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_3),
MetricGroupByItemResolutionNode(node_id=mtr_4),
MeasureGroupByItemSourceNode(node_id=msr_4),
),
),
),
),
),
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
GroupByItemResolution(
issue_set=MetricFlowQueryResolutionIssueSet(
issues=(
NoMatchingItemsForMeasure(
issue_type=ERROR,
query_resolution_path=MetricFlowQueryResolutionPath(
resolution_path_nodes=(
QueryGroupByItemResolutionNode(node_id=qr_5),
MetricGroupByItemResolutionNode(node_id=mtr_10),
MetricGroupByItemResolutionNode(node_id=mtr_9),
MeasureGroupByItemSourceNode(node_id=msr_8),
),
),
),
),
),
)

0 comments on commit fe807f2

Please sign in to comment.