Skip to content

Commit

Permalink
Update snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Oct 16, 2024
1 parent 3766f3f commit ad5df71
Show file tree
Hide file tree
Showing 29 changed files with 163 additions and 163 deletions.
26 changes: 13 additions & 13 deletions metricflow-semantics/tests_metricflow_semantics/test_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from metricflow_semantics.specs.time_dimension_spec import TimeDimensionSpec
from metricflow_semantics.specs.where_filter.where_filter_spec import WhereFilterSpec
from metricflow_semantics.specs.where_filter.where_filter_spec_set import WhereFilterSpecSet
from metricflow_semantics.sql.sql_bind_parameters import SqlBindParameters
from metricflow_semantics.sql.sql_bind_parameters import SqlBindParameterSet
from metricflow_semantics.time.granularity import ExpandedTimeGranularity


Expand Down Expand Up @@ -224,23 +224,23 @@ def where_filter_spec_set() -> WhereFilterSpecSet: # noqa: D103
measure_level_filter_specs=(
WhereFilterSpec(
where_sql="measure is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
),
metric_level_filter_specs=(
WhereFilterSpec(
where_sql="metric is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
),
query_level_filter_specs=(
WhereFilterSpec(
where_sql="query is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
Expand All @@ -252,19 +252,19 @@ def test_where_filter_spec_set_all_specs(where_filter_spec_set: WhereFilterSpecS
assert set(where_filter_spec_set.all_filter_specs) == {
WhereFilterSpec(
where_sql="measure is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
WhereFilterSpec(
where_sql="metric is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
WhereFilterSpec(
where_sql="query is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
Expand All @@ -275,13 +275,13 @@ def test_where_filter_spec_set_post_aggregation_specs(where_filter_spec_set: Whe
assert set(where_filter_spec_set.after_measure_aggregation_filter_specs) == {
WhereFilterSpec(
where_sql="metric is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
WhereFilterSpec(
where_sql="query is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
Expand All @@ -293,7 +293,7 @@ def test_where_filter_spec_set_merge(where_filter_spec_set: WhereFilterSpecSet)
measure_level_filter_specs=(
WhereFilterSpec(
where_sql="measure is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
Expand All @@ -303,7 +303,7 @@ def test_where_filter_spec_set_merge(where_filter_spec_set: WhereFilterSpecSet)
metric_level_filter_specs=(
WhereFilterSpec(
where_sql="metric is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
Expand All @@ -314,15 +314,15 @@ def test_where_filter_spec_set_merge(where_filter_spec_set: WhereFilterSpecSet)
measure_level_filter_specs=(
WhereFilterSpec(
where_sql="measure is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
),
metric_level_filter_specs=(
WhereFilterSpec(
where_sql="metric is true",
bind_parameters=SqlBindParameters(),
bind_parameters=SqlBindParameterSet(),
linkable_element_unions=(),
linkable_spec_set=LinkableSpecSet(),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql="listing__country_latest = 'us'", -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql="listing__country_latest = 'us'", -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- query_level_filter_specs=( -->
<!-- WhereFilterSpec( -->
<!-- where_sql="metric_time__day = '2020-01-01'", -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down Expand Up @@ -62,7 +62,7 @@
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql="metric_time__day = '2020-01-01'", -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down Expand Up @@ -125,7 +125,7 @@
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql="metric_time__day = '2020-01-01'", -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- metric_level_filter_specs=( -->
<!-- WhereFilterSpec( -->
<!-- where_sql='listing__is_lux_latest', -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down Expand Up @@ -90,7 +90,7 @@
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql='listing__is_lux_latest', -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down Expand Up @@ -224,7 +224,7 @@
<!-- metric_level_filter_specs=( -->
<!-- WhereFilterSpec( -->
<!-- where_sql='listing__is_lux_latest', -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down Expand Up @@ -294,7 +294,7 @@
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql='listing__is_lux_latest', -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- metric_level_filter_specs=( -->
<!-- WhereFilterSpec( -->
<!-- where_sql='booking__is_instant', -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down Expand Up @@ -81,7 +81,7 @@
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql='booking__is_instant', -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_element_unions=( -->
<!-- LinkableElementUnion( -->
<!-- linkable_dimension=LinkableDimension( -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@
<WhereConstraintNode>
<!-- description = 'Constrain Output with WHERE' -->
<!-- node_id = NodeId(id_str='wcc_0') -->
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql='listing__bookings > 2', -->
<!-- bind_parameters=SqlBindParameters(), -->
<!-- linkable_spec_set=LinkableSpecSet( -->
<!-- group_by_metric_specs=( -->
<!-- GroupByMetricSpec( -->
<!-- element_name='bookings', -->
<!-- entity_links=( -->
<!-- EntityReference( -->
<!-- element_name='listing', -->
<!-- ), -->
<!-- ), -->
<!-- metric_subquery_entity_links=( -->
<!-- EntityReference( -->
<!-- element_name='listing', -->
<!-- ), -->
<!-- ), -->
<!-- ), -->
<!-- ), -->
<!-- ), -->
<!-- ) -->
<!-- where_condition = -->
<!-- WhereFilterSpec( -->
<!-- where_sql='listing__bookings > 2', -->
<!-- bind_parameters=SqlBindParameterSet(), -->
<!-- linkable_spec_set=LinkableSpecSet( -->
<!-- group_by_metric_specs=( -->
<!-- GroupByMetricSpec( -->
<!-- element_name='bookings', -->
<!-- entity_links=( -->
<!-- EntityReference( -->
<!-- element_name='listing', -->
<!-- ), -->
<!-- ), -->
<!-- metric_subquery_entity_links=( -->
<!-- EntityReference( -->
<!-- element_name='listing', -->
<!-- ), -->
<!-- ), -->
<!-- ), -->
<!-- ), -->
<!-- ), -->
<!-- ) -->
<FilterElementsNode>
<!-- description = "Pass Only Elements: ['listings', 'listing__bookings']" -->
<!-- node_id = NodeId(id_str='pfe_3') -->
Expand Down
Loading

0 comments on commit ad5df71

Please sign in to comment.