Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Oct 11, 2023
1 parent c7e63cb commit c44ded0
Show file tree
Hide file tree
Showing 58 changed files with 979 additions and 3,649 deletions.
42 changes: 21 additions & 21 deletions metricflow/test/generate_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def as_configurations(self) -> Sequence[MetricFlowTestConfiguration]: # noqa: D
engine=SqlEngine.BIGQUERY,
credential_set=self.big_query,
),
MetricFlowTestConfiguration(
engine=SqlEngine.DATABRICKS,
credential_set=self.databricks,
),
# MetricFlowTestConfiguration(
# engine=SqlEngine.DATABRICKS,
# credential_set=self.databricks,
# ),
MetricFlowTestConfiguration(
engine=SqlEngine.POSTGRES,
credential_set=self.postgres,
Expand All @@ -98,24 +98,24 @@ def as_configurations(self) -> Sequence[MetricFlowTestConfiguration]: # noqa: D


SNAPSHOT_GENERATING_TEST_FILES = (
"metricflow/test/dataflow/optimizer/source_scan/test_cm_branch_combiner.py",
"metricflow/test/sql/optimizer/test_column_pruner.py",
"metricflow/test/dataset/test_convert_semantic_model.py",
"metricflow/test/model/test_data_warehouse_tasks.py",
"metricflow/test/dataflow/builder/test_dataflow_plan_builder.py",
"metricflow/test/plan_conversion/test_dataflow_to_execution.py",
# "metricflow/test/dataflow/optimizer/source_scan/test_cm_branch_combiner.py",
# "metricflow/test/sql/optimizer/test_column_pruner.py",
# "metricflow/test/dataset/test_convert_semantic_model.py",
# "metricflow/test/model/test_data_warehouse_tasks.py",
# "metricflow/test/dataflow/builder/test_dataflow_plan_builder.py",
# "metricflow/test/plan_conversion/test_dataflow_to_execution.py",
"metricflow/test/plan_conversion/test_dataflow_to_sql_plan.py",
"metricflow/test/sql/test_engine_specific_rendering.py",
"metricflow/test/plan_conversion/dataflow_to_sql/test_metric_time_dimension_to_sql.py",
"metricflow/test/integration/test_rendered_query.py",
"metricflow/test/sql/optimizer/test_rewriting_sub_query_reducer.py",
"metricflow/test/sql/test_sql_plan_render.py",
"metricflow/test/integration/test_rendered_query.py",
"metricflow/test/sql/optimizer/test_sub_query_reducer.py",
"metricflow/test/dataflow/optimizer/source_scan/test_source_scan_optimizer.py",
"metricflow/test/sql/test_sql_plan_render.py",
"metricflow/test/sql/optimizer/test_sub_query_reducer.py",
"metricflow/test/sql/optimizer/test_table_alias_simplifier.py",
# "metricflow/test/sql/test_engine_specific_rendering.py",
# "metricflow/test/plan_conversion/dataflow_to_sql/test_metric_time_dimension_to_sql.py",
# "metricflow/test/integration/test_rendered_query.py",
# "metricflow/test/sql/optimizer/test_rewriting_sub_query_reducer.py",
# "metricflow/test/sql/test_sql_plan_render.py",
# "metricflow/test/integration/test_rendered_query.py",
# "metricflow/test/sql/optimizer/test_sub_query_reducer.py",
# "metricflow/test/dataflow/optimizer/source_scan/test_source_scan_optimizer.py",
# "metricflow/test/sql/test_sql_plan_render.py",
# "metricflow/test/sql/optimizer/test_sub_query_reducer.py",
# "metricflow/test/sql/optimizer/test_table_alias_simplifier.py",
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<!-- {'class': 'MeasureSpec', -->
<!-- 'element_name': 'booking_value', -->
<!-- 'non_additive_dimension_spec': None} -->
<!-- distinct = False -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From SemanticModelDataSet(SemanticModelReference(semantic_model_name='bookings_source')) -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<!-- 'element_name': 'capacity_latest', -->
<!-- 'entity_links': ({'class': 'EntityReference', -->
<!-- 'element_name': 'cyclic_entity'},)} -->
<!-- distinct = False -->
<JoinToBaseOutputNode>
<!-- description = Join Standard Outputs -->
<!-- node_id = jso_0 -->
Expand All @@ -54,14 +55,15 @@
<!-- {'class': 'LinklessEntitySpec', -->
<!-- 'element_name': 'cyclic_entity', -->
<!-- 'entity_links': ()} -->
<!-- distinct = False -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10010 -->
<!-- aggregation_time_dimension = ds -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From SemanticModelDataSet(SemanticModelReference(semantic_model_name='listings_latest')) -->
<!-- node_id = rss_10044 -->
<!-- node_id = rss_10046 -->
<!-- data_set = -->
<!-- SemanticModelDataSet(SemanticModelReference(semantic_model_name='listings_latest')) -->
</ReadSqlSourceNode>
Expand All @@ -80,10 +82,11 @@
<!-- {'class': 'LinklessEntitySpec', -->
<!-- 'element_name': 'cyclic_entity', -->
<!-- 'entity_links': ()} -->
<!-- distinct = False -->
<ReadSqlSourceNode>
<!-- description = -->
<!-- Read From SemanticModelDataSet(SemanticModelReference(semantic_model_name='listings_latest_cyclic')) -->
<!-- node_id = rss_10045 -->
<!-- node_id = rss_10047 -->
<!-- data_set = -->
<!-- SemanticModelDataSet(SemanticModelReference(semantic_model_name='listings_latest_cyclic')) -->
</ReadSqlSourceNode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<!-- {'class': 'DimensionSpec', -->
<!-- 'element_name': 'country_latest', -->
<!-- 'entity_links': ({'class': 'EntityReference', 'element_name': 'listing'},)} -->
<!-- distinct = False -->
<JoinToBaseOutputNode>
<!-- description = Join Standard Outputs -->
<!-- node_id = jso_0 -->
Expand Down Expand Up @@ -69,6 +70,7 @@
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- include_spec = LinklessEntitySpec(element_name='listing', entity_links=()) -->
<!-- distinct = False -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10001 -->
Expand All @@ -90,6 +92,7 @@
<!-- include_spec = -->
<!-- {'class': 'DimensionSpec', 'element_name': 'country_latest', 'entity_links': ()} -->
<!-- include_spec = LinklessEntitySpec(element_name='listing', entity_links=()) -->
<!-- distinct = False -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10004 -->
Expand Down Expand Up @@ -140,6 +143,7 @@
<!-- {'class': 'DimensionSpec', -->
<!-- 'element_name': 'country_latest', -->
<!-- 'entity_links': ({'class': 'EntityReference', 'element_name': 'listing'},)} -->
<!-- distinct = False -->
<JoinToBaseOutputNode>
<!-- description = Join Standard Outputs -->
<!-- node_id = jso_1 -->
Expand Down Expand Up @@ -169,6 +173,7 @@
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- include_spec = LinklessEntitySpec(element_name='listing', entity_links=()) -->
<!-- distinct = False -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10001 -->
Expand All @@ -190,6 +195,7 @@
<!-- include_spec = -->
<!-- {'class': 'DimensionSpec', 'element_name': 'country_latest', 'entity_links': ()} -->
<!-- include_spec = LinklessEntitySpec(element_name='listing', entity_links=()) -->
<!-- distinct = False -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10004 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<!-- 'time_granularity': TimeGranularity.QUARTER, -->
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- distinct = False -->
<JoinOverTimeRangeNode>
<!-- description = Join Self Over Time Range -->
<!-- node_id = jotr_0 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<!-- {'class': 'MeasureSpec', -->
<!-- 'element_name': 'txn_revenue', -->
<!-- 'non_additive_dimension_spec': None} -->
<!-- distinct = False -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10005 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<!-- 'time_granularity': TimeGranularity.MONTH, -->
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- distinct = False -->
<JoinOverTimeRangeNode>
<!-- description = Join Self Over Time Range -->
<!-- node_id = jotr_0 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<!-- 'time_granularity': TimeGranularity.DAY, -->
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- distinct = False -->
<MetricTimeDimensionTransformNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = sma_10001 -->
Expand Down Expand Up @@ -89,6 +90,7 @@
<!-- 'time_granularity': TimeGranularity.DAY, -->
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- distinct = False -->
<JoinToTimeSpineNode>
<!-- description = Join to Time Spine Dataset -->
<!-- node_id = jts_0 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<!-- 'time_granularity': TimeGranularity.DAY, -->
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- distinct = False -->
<JoinToTimeSpineNode>
<!-- description = Join to Time Spine Dataset -->
<!-- node_id = jts_0 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<!-- 'time_granularity': TimeGranularity.MONTH, -->
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- distinct = False -->
<JoinToTimeSpineNode>
<!-- description = Join to Time Spine Dataset -->
<!-- node_id = jts_0 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<!-- 'time_granularity': TimeGranularity.DAY, -->
<!-- 'date_part': None, -->
<!-- 'aggregation_state': None} -->
<!-- distinct = False -->
<JoinToTimeSpineNode>
<!-- description = Join to Time Spine Dataset -->
<!-- node_id = jts_0 -->
Expand Down
Loading

0 comments on commit c44ded0

Please sign in to comment.