diff --git a/metricflow-semantics/metricflow_semantics/specs/spec_classes.py b/metricflow-semantics/metricflow_semantics/specs/spec_classes.py index ccceaf8364..31f8b8ea09 100644 --- a/metricflow-semantics/metricflow_semantics/specs/spec_classes.py +++ b/metricflow-semantics/metricflow_semantics/specs/spec_classes.py @@ -738,6 +738,23 @@ def metric_subquery_entity_spec(self) -> EntitySpec: entity_links=self.metric_subquery_entity_links[:-1], ) + @property + def qualified_name(self) -> str: + """Element name prefixed with entity links. + + If same entity links are used in inner & outer query, use standard qualified name (country__bookings). + Else, specify both sets of entity links (listing__country__user__country__bookings). + """ + if self.entity_links == self.metric_subquery_entity_links: + entity_links = self.entity_links + else: + entity_links = self.entity_links + self.metric_subquery_entity_links + + return StructuredLinkableSpecName( + entity_link_names=tuple(entity_link.element_name for entity_link in entity_links), + element_name=self.element_name, + ).qualified_name + def __eq__(self, other: Any) -> bool: # type: ignore[misc] # noqa: D105 if not isinstance(other, GroupByMetricSpec): return False diff --git a/metricflow-semantics/tests_metricflow_semantics/snapshots/test_linkable_spec_resolver.py/list/test_linkable_element_set_as_spec_set__set0.txt b/metricflow-semantics/tests_metricflow_semantics/snapshots/test_linkable_spec_resolver.py/list/test_linkable_element_set_as_spec_set__set0.txt index 413cc5b5ec..66505f4456 100644 --- a/metricflow-semantics/tests_metricflow_semantics/snapshots/test_linkable_spec_resolver.py/list/test_linkable_element_set_as_spec_set__set0.txt +++ b/metricflow-semantics/tests_metricflow_semantics/snapshots/test_linkable_spec_resolver.py/list/test_linkable_element_set_as_spec_set__set0.txt @@ -2,43 +2,62 @@ 'listing', 'listing__active_listings', 'listing__approximate_continuous_booking_value_p99', - 'listing__approximate_continuous_booking_value_p99', - 'listing__approximate_discrete_booking_value_p99', 'listing__approximate_discrete_booking_value_p99', 'listing__average_booking_value', - 'listing__average_booking_value', - 'listing__average_instant_booking_value', 'listing__average_instant_booking_value', 'listing__bookers', - 'listing__bookers', - 'listing__booking_fees', + 'listing__booking__listing__approximate_continuous_booking_value_p99', + 'listing__booking__listing__approximate_discrete_booking_value_p99', + 'listing__booking__listing__average_booking_value', + 'listing__booking__listing__average_instant_booking_value', + 'listing__booking__listing__bookers', + 'listing__booking__listing__booking_fees', + 'listing__booking__listing__booking_fees_per_booker', + 'listing__booking__listing__booking_payments', + 'listing__booking__listing__booking_value', + 'listing__booking__listing__booking_value_for_non_null_listing_id', + 'listing__booking__listing__booking_value_p99', + 'listing__booking__listing__booking_value_sub_instant', + 'listing__booking__listing__booking_value_sub_instant_add_10', + 'listing__booking__listing__bookings', + 'listing__booking__listing__bookings_fill_nulls_with_0', + 'listing__booking__listing__bookings_fill_nulls_with_0_without_time_spine', + 'listing__booking__listing__bookings_join_to_time_spine', + 'listing__booking__listing__bookings_per_booker', + 'listing__booking__listing__bookings_per_dollar', + 'listing__booking__listing__derived_bookings_0', + 'listing__booking__listing__derived_bookings_1', + 'listing__booking__listing__discrete_booking_value_p99', + 'listing__booking__listing__double_counted_delayed_bookings', + 'listing__booking__listing__instant_booking_fraction_of_max_value', + 'listing__booking__listing__instant_booking_value', + 'listing__booking__listing__instant_booking_value_ratio', + 'listing__booking__listing__instant_bookings', + 'listing__booking__listing__instant_lux_booking_value_rate', + 'listing__booking__listing__instant_plus_non_referred_bookings_pct', + 'listing__booking__listing__lux_booking_fraction_of_max_value', + 'listing__booking__listing__lux_booking_value_rate_expr', + 'listing__booking__listing__max_booking_value', + 'listing__booking__listing__median_booking_value', + 'listing__booking__listing__min_booking_value', + 'listing__booking__listing__nested_fill_nulls_without_time_spine', + 'listing__booking__listing__non_referred_bookings_pct', + 'listing__booking__listing__referred_bookings', + 'listing__booking__listing__twice_bookings_fill_nulls_with_0_without_time_spine', 'listing__booking_fees', 'listing__booking_fees_per_booker', - 'listing__booking_fees_per_booker', - 'listing__booking_payments', 'listing__booking_payments', 'listing__booking_value', - 'listing__booking_value', - 'listing__booking_value_for_non_null_listing_id', 'listing__booking_value_for_non_null_listing_id', 'listing__booking_value_p99', - 'listing__booking_value_p99', 'listing__booking_value_per_view', 'listing__booking_value_sub_instant', - 'listing__booking_value_sub_instant', 'listing__booking_value_sub_instant_add_10', - 'listing__booking_value_sub_instant_add_10', - 'listing__bookings', 'listing__bookings', 'listing__bookings_fill_nulls_with_0', - 'listing__bookings_fill_nulls_with_0', 'listing__bookings_fill_nulls_with_0_without_time_spine', - 'listing__bookings_fill_nulls_with_0_without_time_spine', - 'listing__bookings_join_to_time_spine', 'listing__bookings_join_to_time_spine', 'listing__bookings_per_booker', - 'listing__bookings_per_booker', - 'listing__bookings_per_dollar', 'listing__bookings_per_dollar', 'listing__bookings_per_listing', 'listing__bookings_per_lux_listing_derived', @@ -66,12 +85,8 @@ 'listing__created_at__week', 'listing__created_at__year', 'listing__derived_bookings_0', - 'listing__derived_bookings_0', - 'listing__derived_bookings_1', 'listing__derived_bookings_1', 'listing__discrete_booking_value_p99', - 'listing__discrete_booking_value_p99', - 'listing__double_counted_delayed_bookings', 'listing__double_counted_delayed_bookings', 'listing__ds__day', 'listing__ds__extract_day', @@ -94,23 +109,15 @@ 'listing__ds__week', 'listing__ds__year', 'listing__instant_booking_fraction_of_max_value', - 'listing__instant_booking_fraction_of_max_value', 'listing__instant_booking_value', - 'listing__instant_booking_value', - 'listing__instant_booking_value_ratio', 'listing__instant_booking_value_ratio', 'listing__instant_bookings', - 'listing__instant_bookings', - 'listing__instant_lux_booking_value_rate', 'listing__instant_lux_booking_value_rate', 'listing__instant_plus_non_referred_bookings_pct', - 'listing__instant_plus_non_referred_bookings_pct', 'listing__is_lux_latest', 'listing__largest_listing', 'listing__listings', 'listing__lux_booking_fraction_of_max_value', - 'listing__lux_booking_fraction_of_max_value', - 'listing__lux_booking_value_rate_expr', 'listing__lux_booking_value_rate_expr', 'listing__lux_listing', 'listing__lux_listing__active_listings', @@ -164,22 +171,15 @@ 'listing__lux_listing__views_times_booking_value', 'listing__lux_listings', 'listing__max_booking_value', - 'listing__max_booking_value', - 'listing__median_booking_value', 'listing__median_booking_value', 'listing__min_booking_value', - 'listing__min_booking_value', - 'listing__nested_fill_nulls_without_time_spine', 'listing__nested_fill_nulls_without_time_spine', 'listing__non_referred_bookings_pct', - 'listing__non_referred_bookings_pct', - 'listing__referred_bookings', 'listing__referred_bookings', 'listing__smallest_listing', 'listing__twice_bookings_fill_nulls_with_0_without_time_spine', - 'listing__twice_bookings_fill_nulls_with_0_without_time_spine', 'listing__user', - 'listing__views', + 'listing__view__listing__views', 'listing__views', 'listing__views_times_booking_value', 'metric_time__day', @@ -203,86 +203,65 @@ 'metric_time__week', 'metric_time__year', 'user', + 'user__account__user__current_account_balance_by_user', + 'user__account__user__regional_starting_balance_ratios', + 'user__account__user__total_account_balance_first_day', 'user__active_listings', - 'user__active_listings', - 'user__approximate_continuous_booking_value_p99', - 'user__approximate_discrete_booking_value_p99', - 'user__average_booking_value', - 'user__average_instant_booking_value', - 'user__bookers', - 'user__booking_fees', - 'user__booking_fees_per_booker', - 'user__booking_payments', - 'user__booking_value', - 'user__booking_value_for_non_null_listing_id', - 'user__booking_value_p99', - 'user__booking_value_per_view', - 'user__booking_value_sub_instant', - 'user__booking_value_sub_instant_add_10', - 'user__bookings', - 'user__bookings_fill_nulls_with_0', - 'user__bookings_fill_nulls_with_0_without_time_spine', - 'user__bookings_join_to_time_spine', - 'user__bookings_per_booker', - 'user__bookings_per_dollar', - 'user__bookings_per_listing', - 'user__bookings_per_lux_listing_derived', - 'user__bookings_per_view', 'user__company', 'user__company__active_listings', - 'user__company__approximate_continuous_booking_value_p99', - 'user__company__approximate_discrete_booking_value_p99', - 'user__company__average_booking_value', - 'user__company__average_instant_booking_value', - 'user__company__bookers', - 'user__company__booking_fees', - 'user__company__booking_fees_per_booker', - 'user__company__booking_payments', - 'user__company__booking_value', - 'user__company__booking_value_for_non_null_listing_id', - 'user__company__booking_value_p99', - 'user__company__booking_value_per_view', - 'user__company__booking_value_sub_instant', - 'user__company__booking_value_sub_instant_add_10', - 'user__company__bookings', - 'user__company__bookings_fill_nulls_with_0', - 'user__company__bookings_fill_nulls_with_0_without_time_spine', - 'user__company__bookings_join_to_time_spine', - 'user__company__bookings_per_booker', - 'user__company__bookings_per_dollar', - 'user__company__bookings_per_view', 'user__company__current_account_balance_by_user', - 'user__company__derived_bookings_0', - 'user__company__derived_bookings_1', - 'user__company__discrete_booking_value_p99', - 'user__company__double_counted_delayed_bookings', 'user__company__identity_verifications', - 'user__company__instant_booking_fraction_of_max_value', - 'user__company__instant_booking_value', - 'user__company__instant_booking_value_ratio', - 'user__company__instant_bookings', - 'user__company__instant_lux_booking_value_rate', - 'user__company__instant_plus_non_referred_bookings_pct', 'user__company__largest_listing', + 'user__company__listing__user__company__approximate_continuous_booking_value_p99', + 'user__company__listing__user__company__approximate_discrete_booking_value_p99', + 'user__company__listing__user__company__average_booking_value', + 'user__company__listing__user__company__average_instant_booking_value', + 'user__company__listing__user__company__bookers', + 'user__company__listing__user__company__booking_fees', + 'user__company__listing__user__company__booking_fees_per_booker', + 'user__company__listing__user__company__booking_payments', + 'user__company__listing__user__company__booking_value', + 'user__company__listing__user__company__booking_value_for_non_null_listing_id', + 'user__company__listing__user__company__booking_value_p99', + 'user__company__listing__user__company__booking_value_per_view', + 'user__company__listing__user__company__booking_value_sub_instant', + 'user__company__listing__user__company__booking_value_sub_instant_add_10', + 'user__company__listing__user__company__bookings', + 'user__company__listing__user__company__bookings_fill_nulls_with_0', + 'user__company__listing__user__company__bookings_fill_nulls_with_0_without_time_spine', + 'user__company__listing__user__company__bookings_join_to_time_spine', + 'user__company__listing__user__company__bookings_per_booker', + 'user__company__listing__user__company__bookings_per_dollar', + 'user__company__listing__user__company__bookings_per_view', + 'user__company__listing__user__company__derived_bookings_0', + 'user__company__listing__user__company__derived_bookings_1', + 'user__company__listing__user__company__discrete_booking_value_p99', + 'user__company__listing__user__company__double_counted_delayed_bookings', + 'user__company__listing__user__company__instant_booking_fraction_of_max_value', + 'user__company__listing__user__company__instant_booking_value', + 'user__company__listing__user__company__instant_booking_value_ratio', + 'user__company__listing__user__company__instant_bookings', + 'user__company__listing__user__company__instant_lux_booking_value_rate', + 'user__company__listing__user__company__instant_plus_non_referred_bookings_pct', + 'user__company__listing__user__company__lux_booking_fraction_of_max_value', + 'user__company__listing__user__company__lux_booking_value_rate_expr', + 'user__company__listing__user__company__max_booking_value', + 'user__company__listing__user__company__median_booking_value', + 'user__company__listing__user__company__min_booking_value', + 'user__company__listing__user__company__nested_fill_nulls_without_time_spine', + 'user__company__listing__user__company__non_referred_bookings_pct', + 'user__company__listing__user__company__referred_bookings', + 'user__company__listing__user__company__twice_bookings_fill_nulls_with_0_without_time_spine', + 'user__company__listing__user__company__views', + 'user__company__listing__user__company__views_times_booking_value', 'user__company__listings', - 'user__company__lux_booking_fraction_of_max_value', - 'user__company__lux_booking_value_rate_expr', 'user__company__lux_listings', - 'user__company__max_booking_value', - 'user__company__median_booking_value', - 'user__company__min_booking_value', - 'user__company__nested_fill_nulls_without_time_spine', - 'user__company__non_referred_bookings_pct', - 'user__company__referred_bookings', 'user__company__regional_starting_balance_ratios', 'user__company__revenue', 'user__company__revenue_all_time', 'user__company__smallest_listing', 'user__company__total_account_balance_first_day', - 'user__company__twice_bookings_fill_nulls_with_0_without_time_spine', - 'user__company__views', 'user__company__views', - 'user__company__views_times_booking_value', 'user__company__visit_buy_conversion_rate', 'user__company__visit_buy_conversion_rate_7days', 'user__company__visit_buy_conversion_rate_7days_fill_nulls_with_0', @@ -310,11 +289,6 @@ 'user__created_at__week', 'user__created_at__year', 'user__current_account_balance_by_user', - 'user__current_account_balance_by_user', - 'user__derived_bookings_0', - 'user__derived_bookings_1', - 'user__discrete_booking_value_p99', - 'user__double_counted_delayed_bookings', 'user__ds__day', 'user__ds__extract_day', 'user__ds__extract_dow', @@ -378,50 +352,76 @@ 'user__home_state', 'user__home_state_latest', 'user__identity_verifications', - 'user__identity_verifications', - 'user__instant_booking_fraction_of_max_value', - 'user__instant_booking_value', - 'user__instant_booking_value_ratio', - 'user__instant_bookings', - 'user__instant_lux_booking_value_rate', - 'user__instant_plus_non_referred_bookings_pct', - 'user__largest_listing', 'user__largest_listing', + 'user__listing__user__active_listings', + 'user__listing__user__approximate_continuous_booking_value_p99', + 'user__listing__user__approximate_discrete_booking_value_p99', + 'user__listing__user__average_booking_value', + 'user__listing__user__average_instant_booking_value', + 'user__listing__user__bookers', + 'user__listing__user__booking_fees', + 'user__listing__user__booking_fees_per_booker', + 'user__listing__user__booking_payments', + 'user__listing__user__booking_value', + 'user__listing__user__booking_value_for_non_null_listing_id', + 'user__listing__user__booking_value_p99', + 'user__listing__user__booking_value_per_view', + 'user__listing__user__booking_value_sub_instant', + 'user__listing__user__booking_value_sub_instant_add_10', + 'user__listing__user__bookings', + 'user__listing__user__bookings_fill_nulls_with_0', + 'user__listing__user__bookings_fill_nulls_with_0_without_time_spine', + 'user__listing__user__bookings_join_to_time_spine', + 'user__listing__user__bookings_per_booker', + 'user__listing__user__bookings_per_dollar', + 'user__listing__user__bookings_per_listing', + 'user__listing__user__bookings_per_lux_listing_derived', + 'user__listing__user__bookings_per_view', + 'user__listing__user__derived_bookings_0', + 'user__listing__user__derived_bookings_1', + 'user__listing__user__discrete_booking_value_p99', + 'user__listing__user__double_counted_delayed_bookings', + 'user__listing__user__instant_booking_fraction_of_max_value', + 'user__listing__user__instant_booking_value', + 'user__listing__user__instant_booking_value_ratio', + 'user__listing__user__instant_bookings', + 'user__listing__user__instant_lux_booking_value_rate', + 'user__listing__user__instant_plus_non_referred_bookings_pct', + 'user__listing__user__largest_listing', + 'user__listing__user__listings', + 'user__listing__user__lux_booking_fraction_of_max_value', + 'user__listing__user__lux_booking_value_rate_expr', + 'user__listing__user__lux_listings', + 'user__listing__user__max_booking_value', + 'user__listing__user__median_booking_value', + 'user__listing__user__min_booking_value', + 'user__listing__user__nested_fill_nulls_without_time_spine', + 'user__listing__user__non_referred_bookings_pct', + 'user__listing__user__referred_bookings', + 'user__listing__user__smallest_listing', + 'user__listing__user__twice_bookings_fill_nulls_with_0_without_time_spine', + 'user__listing__user__views', + 'user__listing__user__views_times_booking_value', 'user__listings', - 'user__listings', - 'user__lux_booking_fraction_of_max_value', - 'user__lux_booking_value_rate_expr', - 'user__lux_listings', 'user__lux_listings', - 'user__max_booking_value', - 'user__median_booking_value', - 'user__min_booking_value', - 'user__nested_fill_nulls_without_time_spine', - 'user__non_referred_bookings_pct', - 'user__referred_bookings', 'user__regional_starting_balance_ratios', - 'user__regional_starting_balance_ratios', - 'user__revenue', 'user__revenue', 'user__revenue_all_time', - 'user__revenue_all_time', - 'user__smallest_listing', + 'user__revenue_instance__user__revenue', + 'user__revenue_instance__user__revenue_all_time', 'user__smallest_listing', 'user__total_account_balance_first_day', - 'user__total_account_balance_first_day', - 'user__twice_bookings_fill_nulls_with_0_without_time_spine', + 'user__verification__user__identity_verifications', + 'user__view__user__views', 'user__views', - 'user__views', - 'user__views', - 'user__views_times_booking_value', + 'user__visit__user__visit_buy_conversion_rate', + 'user__visit__user__visit_buy_conversion_rate_7days', + 'user__visit__user__visit_buy_conversion_rate_7days_fill_nulls_with_0', + 'user__visit__user__visit_buy_conversion_rate_by_session', + 'user__visit__user__visit_buy_conversions', 'user__visit_buy_conversion_rate', - 'user__visit_buy_conversion_rate', - 'user__visit_buy_conversion_rate_7days', 'user__visit_buy_conversion_rate_7days', 'user__visit_buy_conversion_rate_7days_fill_nulls_with_0', - 'user__visit_buy_conversion_rate_7days_fill_nulls_with_0', - 'user__visit_buy_conversion_rate_by_session', 'user__visit_buy_conversion_rate_by_session', 'user__visit_buy_conversions', - 'user__visit_buy_conversions', ] diff --git a/metricflow-semantics/tests_metricflow_semantics/snapshots/test_semantic_model_container.py/tuple/test_linkable_elements_for_no_metrics_query__result0.txt b/metricflow-semantics/tests_metricflow_semantics/snapshots/test_semantic_model_container.py/tuple/test_linkable_elements_for_no_metrics_query__result0.txt index 65f12b3488..3e85658cbd 100644 --- a/metricflow-semantics/tests_metricflow_semantics/snapshots/test_semantic_model_container.py/tuple/test_linkable_elements_for_no_metrics_query__result0.txt +++ b/metricflow-semantics/tests_metricflow_semantics/snapshots/test_semantic_model_container.py/tuple/test_linkable_elements_for_no_metrics_query__result0.txt @@ -43,262 +43,281 @@ 'buy__session_id', 'buy__user', 'company', - 'company__active_listings', - 'company__approximate_continuous_booking_value_p99', - 'company__approximate_discrete_booking_value_p99', - 'company__average_booking_value', - 'company__average_instant_booking_value', - 'company__bookers', - 'company__booking_fees', - 'company__booking_fees_per_booker', - 'company__booking_payments', - 'company__booking_value', - 'company__booking_value_for_non_null_listing_id', - 'company__booking_value_p99', - 'company__booking_value_per_view', - 'company__booking_value_sub_instant', - 'company__booking_value_sub_instant_add_10', - 'company__bookings', - 'company__bookings_fill_nulls_with_0', - 'company__bookings_fill_nulls_with_0_without_time_spine', - 'company__bookings_join_to_time_spine', - 'company__bookings_per_booker', - 'company__bookings_per_dollar', - 'company__bookings_per_view', 'company__company_name', - 'company__current_account_balance_by_user', - 'company__derived_bookings_0', - 'company__derived_bookings_1', - 'company__discrete_booking_value_p99', - 'company__double_counted_delayed_bookings', - 'company__identity_verifications', - 'company__instant_booking_fraction_of_max_value', - 'company__instant_booking_value', - 'company__instant_booking_value_ratio', - 'company__instant_bookings', - 'company__instant_lux_booking_value_rate', - 'company__instant_plus_non_referred_bookings_pct', - 'company__largest_listing', - 'company__listings', - 'company__lux_booking_fraction_of_max_value', - 'company__lux_booking_value_rate_expr', - 'company__lux_listings', - 'company__max_booking_value', - 'company__median_booking_value', - 'company__min_booking_value', - 'company__nested_fill_nulls_without_time_spine', - 'company__non_referred_bookings_pct', - 'company__referred_bookings', - 'company__regional_starting_balance_ratios', - 'company__revenue', - 'company__revenue_all_time', - 'company__smallest_listing', - 'company__total_account_balance_first_day', - 'company__twice_bookings_fill_nulls_with_0_without_time_spine', + 'company__listing__user__company__approximate_continuous_booking_value_p99', + 'company__listing__user__company__approximate_discrete_booking_value_p99', + 'company__listing__user__company__average_booking_value', + 'company__listing__user__company__average_instant_booking_value', + 'company__listing__user__company__bookers', + 'company__listing__user__company__booking_fees', + 'company__listing__user__company__booking_fees_per_booker', + 'company__listing__user__company__booking_payments', + 'company__listing__user__company__booking_value', + 'company__listing__user__company__booking_value_for_non_null_listing_id', + 'company__listing__user__company__booking_value_p99', + 'company__listing__user__company__booking_value_per_view', + 'company__listing__user__company__booking_value_sub_instant', + 'company__listing__user__company__booking_value_sub_instant_add_10', + 'company__listing__user__company__bookings', + 'company__listing__user__company__bookings_fill_nulls_with_0', + 'company__listing__user__company__bookings_fill_nulls_with_0_without_time_spine', + 'company__listing__user__company__bookings_join_to_time_spine', + 'company__listing__user__company__bookings_per_booker', + 'company__listing__user__company__bookings_per_dollar', + 'company__listing__user__company__bookings_per_view', + 'company__listing__user__company__derived_bookings_0', + 'company__listing__user__company__derived_bookings_1', + 'company__listing__user__company__discrete_booking_value_p99', + 'company__listing__user__company__double_counted_delayed_bookings', + 'company__listing__user__company__instant_booking_fraction_of_max_value', + 'company__listing__user__company__instant_booking_value', + 'company__listing__user__company__instant_booking_value_ratio', + 'company__listing__user__company__instant_bookings', + 'company__listing__user__company__instant_lux_booking_value_rate', + 'company__listing__user__company__instant_plus_non_referred_bookings_pct', + 'company__listing__user__company__lux_booking_fraction_of_max_value', + 'company__listing__user__company__lux_booking_value_rate_expr', + 'company__listing__user__company__max_booking_value', + 'company__listing__user__company__median_booking_value', + 'company__listing__user__company__min_booking_value', + 'company__listing__user__company__nested_fill_nulls_without_time_spine', + 'company__listing__user__company__non_referred_bookings_pct', + 'company__listing__user__company__referred_bookings', + 'company__listing__user__company__twice_bookings_fill_nulls_with_0_without_time_spine', + 'company__listing__user__company__views', + 'company__listing__user__company__views_times_booking_value', 'company__user', - 'company__views', - 'company__views', - 'company__views_times_booking_value', - 'company__visit_buy_conversion_rate', - 'company__visit_buy_conversion_rate_7days', - 'company__visit_buy_conversion_rate_7days_fill_nulls_with_0', - 'company__visit_buy_conversion_rate_by_session', - 'company__visit_buy_conversions', + 'company__user__company__active_listings', + 'company__user__company__current_account_balance_by_user', + 'company__user__company__identity_verifications', + 'company__user__company__largest_listing', + 'company__user__company__listings', + 'company__user__company__lux_listings', + 'company__user__company__regional_starting_balance_ratios', + 'company__user__company__revenue', + 'company__user__company__revenue_all_time', + 'company__user__company__smallest_listing', + 'company__user__company__total_account_balance_first_day', + 'company__user__company__views', + 'company__user__company__visit_buy_conversion_rate', + 'company__user__company__visit_buy_conversion_rate_7days', + 'company__user__company__visit_buy_conversion_rate_7days_fill_nulls_with_0', + 'company__user__company__visit_buy_conversion_rate_by_session', + 'company__user__company__visit_buy_conversions', 'guest', 'guest__approximate_continuous_booking_value_p99', - 'guest__approximate_continuous_booking_value_p99', - 'guest__approximate_discrete_booking_value_p99', 'guest__approximate_discrete_booking_value_p99', 'guest__average_booking_value', - 'guest__average_booking_value', 'guest__average_instant_booking_value', - 'guest__average_instant_booking_value', - 'guest__bookers', 'guest__bookers', + 'guest__booking__guest__approximate_continuous_booking_value_p99', + 'guest__booking__guest__approximate_discrete_booking_value_p99', + 'guest__booking__guest__average_booking_value', + 'guest__booking__guest__average_instant_booking_value', + 'guest__booking__guest__bookers', + 'guest__booking__guest__booking_fees', + 'guest__booking__guest__booking_fees_per_booker', + 'guest__booking__guest__booking_payments', + 'guest__booking__guest__booking_value', + 'guest__booking__guest__booking_value_for_non_null_listing_id', + 'guest__booking__guest__booking_value_p99', + 'guest__booking__guest__booking_value_sub_instant', + 'guest__booking__guest__booking_value_sub_instant_add_10', + 'guest__booking__guest__bookings', + 'guest__booking__guest__bookings_fill_nulls_with_0', + 'guest__booking__guest__bookings_fill_nulls_with_0_without_time_spine', + 'guest__booking__guest__bookings_join_to_time_spine', + 'guest__booking__guest__bookings_per_booker', + 'guest__booking__guest__bookings_per_dollar', + 'guest__booking__guest__derived_bookings_0', + 'guest__booking__guest__derived_bookings_1', + 'guest__booking__guest__discrete_booking_value_p99', + 'guest__booking__guest__double_counted_delayed_bookings', + 'guest__booking__guest__instant_booking_fraction_of_max_value', + 'guest__booking__guest__instant_booking_value', + 'guest__booking__guest__instant_booking_value_ratio', + 'guest__booking__guest__instant_bookings', + 'guest__booking__guest__instant_lux_booking_value_rate', + 'guest__booking__guest__instant_plus_non_referred_bookings_pct', + 'guest__booking__guest__lux_booking_fraction_of_max_value', + 'guest__booking__guest__lux_booking_value_rate_expr', + 'guest__booking__guest__max_booking_value', + 'guest__booking__guest__median_booking_value', + 'guest__booking__guest__min_booking_value', + 'guest__booking__guest__nested_fill_nulls_without_time_spine', + 'guest__booking__guest__non_referred_bookings_pct', + 'guest__booking__guest__referred_bookings', + 'guest__booking__guest__twice_bookings_fill_nulls_with_0_without_time_spine', 'guest__booking_fees', - 'guest__booking_fees', - 'guest__booking_fees_per_booker', 'guest__booking_fees_per_booker', 'guest__booking_payments', - 'guest__booking_payments', - 'guest__booking_value', 'guest__booking_value', 'guest__booking_value_for_non_null_listing_id', - 'guest__booking_value_for_non_null_listing_id', - 'guest__booking_value_p99', 'guest__booking_value_p99', 'guest__booking_value_sub_instant', - 'guest__booking_value_sub_instant', 'guest__booking_value_sub_instant_add_10', - 'guest__booking_value_sub_instant_add_10', - 'guest__bookings', 'guest__bookings', 'guest__bookings_fill_nulls_with_0', - 'guest__bookings_fill_nulls_with_0', - 'guest__bookings_fill_nulls_with_0_without_time_spine', 'guest__bookings_fill_nulls_with_0_without_time_spine', 'guest__bookings_join_to_time_spine', - 'guest__bookings_join_to_time_spine', - 'guest__bookings_per_booker', 'guest__bookings_per_booker', 'guest__bookings_per_dollar', - 'guest__bookings_per_dollar', - 'guest__derived_bookings_0', 'guest__derived_bookings_0', 'guest__derived_bookings_1', - 'guest__derived_bookings_1', 'guest__discrete_booking_value_p99', - 'guest__discrete_booking_value_p99', - 'guest__double_counted_delayed_bookings', 'guest__double_counted_delayed_bookings', 'guest__instant_booking_fraction_of_max_value', - 'guest__instant_booking_fraction_of_max_value', - 'guest__instant_booking_value', 'guest__instant_booking_value', 'guest__instant_booking_value_ratio', - 'guest__instant_booking_value_ratio', - 'guest__instant_bookings', 'guest__instant_bookings', 'guest__instant_lux_booking_value_rate', - 'guest__instant_lux_booking_value_rate', - 'guest__instant_plus_non_referred_bookings_pct', 'guest__instant_plus_non_referred_bookings_pct', 'guest__lux_booking_fraction_of_max_value', - 'guest__lux_booking_fraction_of_max_value', - 'guest__lux_booking_value_rate_expr', 'guest__lux_booking_value_rate_expr', 'guest__max_booking_value', - 'guest__max_booking_value', - 'guest__median_booking_value', 'guest__median_booking_value', 'guest__min_booking_value', - 'guest__min_booking_value', - 'guest__nested_fill_nulls_without_time_spine', 'guest__nested_fill_nulls_without_time_spine', 'guest__non_referred_bookings_pct', - 'guest__non_referred_bookings_pct', - 'guest__referred_bookings', 'guest__referred_bookings', 'guest__twice_bookings_fill_nulls_with_0_without_time_spine', - 'guest__twice_bookings_fill_nulls_with_0_without_time_spine', 'host', 'host__approximate_continuous_booking_value_p99', - 'host__approximate_continuous_booking_value_p99', - 'host__approximate_discrete_booking_value_p99', 'host__approximate_discrete_booking_value_p99', 'host__average_booking_value', - 'host__average_booking_value', - 'host__average_instant_booking_value', 'host__average_instant_booking_value', 'host__bookers', - 'host__bookers', - 'host__booking_fees', + 'host__booking__host__approximate_continuous_booking_value_p99', + 'host__booking__host__approximate_discrete_booking_value_p99', + 'host__booking__host__average_booking_value', + 'host__booking__host__average_instant_booking_value', + 'host__booking__host__bookers', + 'host__booking__host__booking_fees', + 'host__booking__host__booking_fees_per_booker', + 'host__booking__host__booking_payments', + 'host__booking__host__booking_value', + 'host__booking__host__booking_value_for_non_null_listing_id', + 'host__booking__host__booking_value_p99', + 'host__booking__host__booking_value_sub_instant', + 'host__booking__host__booking_value_sub_instant_add_10', + 'host__booking__host__bookings', + 'host__booking__host__bookings_fill_nulls_with_0', + 'host__booking__host__bookings_fill_nulls_with_0_without_time_spine', + 'host__booking__host__bookings_join_to_time_spine', + 'host__booking__host__bookings_per_booker', + 'host__booking__host__bookings_per_dollar', + 'host__booking__host__derived_bookings_0', + 'host__booking__host__derived_bookings_1', + 'host__booking__host__discrete_booking_value_p99', + 'host__booking__host__double_counted_delayed_bookings', + 'host__booking__host__instant_booking_fraction_of_max_value', + 'host__booking__host__instant_booking_value', + 'host__booking__host__instant_booking_value_ratio', + 'host__booking__host__instant_bookings', + 'host__booking__host__instant_lux_booking_value_rate', + 'host__booking__host__instant_plus_non_referred_bookings_pct', + 'host__booking__host__lux_booking_fraction_of_max_value', + 'host__booking__host__lux_booking_value_rate_expr', + 'host__booking__host__max_booking_value', + 'host__booking__host__median_booking_value', + 'host__booking__host__min_booking_value', + 'host__booking__host__nested_fill_nulls_without_time_spine', + 'host__booking__host__non_referred_bookings_pct', + 'host__booking__host__referred_bookings', + 'host__booking__host__twice_bookings_fill_nulls_with_0_without_time_spine', 'host__booking_fees', 'host__booking_fees_per_booker', - 'host__booking_fees_per_booker', - 'host__booking_payments', 'host__booking_payments', 'host__booking_value', - 'host__booking_value', - 'host__booking_value_for_non_null_listing_id', 'host__booking_value_for_non_null_listing_id', 'host__booking_value_p99', - 'host__booking_value_p99', - 'host__booking_value_sub_instant', 'host__booking_value_sub_instant', 'host__booking_value_sub_instant_add_10', - 'host__booking_value_sub_instant_add_10', - 'host__bookings', 'host__bookings', 'host__bookings_fill_nulls_with_0', - 'host__bookings_fill_nulls_with_0', - 'host__bookings_fill_nulls_with_0_without_time_spine', 'host__bookings_fill_nulls_with_0_without_time_spine', 'host__bookings_join_to_time_spine', - 'host__bookings_join_to_time_spine', 'host__bookings_per_booker', - 'host__bookings_per_booker', - 'host__bookings_per_dollar', 'host__bookings_per_dollar', 'host__derived_bookings_0', - 'host__derived_bookings_0', - 'host__derived_bookings_1', 'host__derived_bookings_1', 'host__discrete_booking_value_p99', - 'host__discrete_booking_value_p99', - 'host__double_counted_delayed_bookings', 'host__double_counted_delayed_bookings', 'host__instant_booking_fraction_of_max_value', - 'host__instant_booking_fraction_of_max_value', - 'host__instant_booking_value', 'host__instant_booking_value', 'host__instant_booking_value_ratio', - 'host__instant_booking_value_ratio', - 'host__instant_bookings', 'host__instant_bookings', 'host__instant_lux_booking_value_rate', - 'host__instant_lux_booking_value_rate', - 'host__instant_plus_non_referred_bookings_pct', 'host__instant_plus_non_referred_bookings_pct', 'host__lux_booking_fraction_of_max_value', - 'host__lux_booking_fraction_of_max_value', - 'host__lux_booking_value_rate_expr', 'host__lux_booking_value_rate_expr', 'host__max_booking_value', - 'host__max_booking_value', - 'host__median_booking_value', 'host__median_booking_value', 'host__min_booking_value', - 'host__min_booking_value', 'host__nested_fill_nulls_without_time_spine', - 'host__nested_fill_nulls_without_time_spine', - 'host__non_referred_bookings_pct', 'host__non_referred_bookings_pct', 'host__referred_bookings', - 'host__referred_bookings', - 'host__twice_bookings_fill_nulls_with_0_without_time_spine', 'host__twice_bookings_fill_nulls_with_0_without_time_spine', 'listing', 'listing__active_listings', 'listing__approximate_continuous_booking_value_p99', - 'listing__approximate_continuous_booking_value_p99', - 'listing__approximate_discrete_booking_value_p99', 'listing__approximate_discrete_booking_value_p99', 'listing__average_booking_value', - 'listing__average_booking_value', - 'listing__average_instant_booking_value', 'listing__average_instant_booking_value', 'listing__bookers', - 'listing__bookers', + 'listing__booking__listing__approximate_continuous_booking_value_p99', + 'listing__booking__listing__approximate_discrete_booking_value_p99', + 'listing__booking__listing__average_booking_value', + 'listing__booking__listing__average_instant_booking_value', + 'listing__booking__listing__bookers', + 'listing__booking__listing__booking_fees', + 'listing__booking__listing__booking_fees_per_booker', + 'listing__booking__listing__booking_payments', + 'listing__booking__listing__booking_value', + 'listing__booking__listing__booking_value_for_non_null_listing_id', + 'listing__booking__listing__booking_value_p99', + 'listing__booking__listing__booking_value_sub_instant', + 'listing__booking__listing__booking_value_sub_instant_add_10', + 'listing__booking__listing__bookings', + 'listing__booking__listing__bookings_fill_nulls_with_0', + 'listing__booking__listing__bookings_fill_nulls_with_0_without_time_spine', + 'listing__booking__listing__bookings_join_to_time_spine', + 'listing__booking__listing__bookings_per_booker', + 'listing__booking__listing__bookings_per_dollar', + 'listing__booking__listing__derived_bookings_0', + 'listing__booking__listing__derived_bookings_1', + 'listing__booking__listing__discrete_booking_value_p99', + 'listing__booking__listing__double_counted_delayed_bookings', + 'listing__booking__listing__instant_booking_fraction_of_max_value', + 'listing__booking__listing__instant_booking_value', + 'listing__booking__listing__instant_booking_value_ratio', + 'listing__booking__listing__instant_bookings', + 'listing__booking__listing__instant_lux_booking_value_rate', + 'listing__booking__listing__instant_plus_non_referred_bookings_pct', + 'listing__booking__listing__lux_booking_fraction_of_max_value', + 'listing__booking__listing__lux_booking_value_rate_expr', + 'listing__booking__listing__max_booking_value', + 'listing__booking__listing__median_booking_value', + 'listing__booking__listing__min_booking_value', + 'listing__booking__listing__nested_fill_nulls_without_time_spine', + 'listing__booking__listing__non_referred_bookings_pct', + 'listing__booking__listing__referred_bookings', + 'listing__booking__listing__twice_bookings_fill_nulls_with_0_without_time_spine', 'listing__booking_fees', - 'listing__booking_fees', - 'listing__booking_fees_per_booker', 'listing__booking_fees_per_booker', 'listing__booking_payments', - 'listing__booking_payments', - 'listing__booking_value', 'listing__booking_value', 'listing__booking_value_for_non_null_listing_id', - 'listing__booking_value_for_non_null_listing_id', - 'listing__booking_value_p99', 'listing__booking_value_p99', 'listing__booking_value_per_view', 'listing__booking_value_sub_instant', - 'listing__booking_value_sub_instant', - 'listing__booking_value_sub_instant_add_10', 'listing__booking_value_sub_instant_add_10', 'listing__bookings', - 'listing__bookings', 'listing__bookings_fill_nulls_with_0', - 'listing__bookings_fill_nulls_with_0', - 'listing__bookings_fill_nulls_with_0_without_time_spine', 'listing__bookings_fill_nulls_with_0_without_time_spine', 'listing__bookings_join_to_time_spine', - 'listing__bookings_join_to_time_spine', - 'listing__bookings_per_booker', 'listing__bookings_per_booker', 'listing__bookings_per_dollar', - 'listing__bookings_per_dollar', 'listing__bookings_per_listing', 'listing__bookings_per_lux_listing_derived', 'listing__bookings_per_view', @@ -312,13 +331,9 @@ 'listing__created_at__extract_quarter', 'listing__created_at__extract_year', 'listing__derived_bookings_0', - 'listing__derived_bookings_0', 'listing__derived_bookings_1', - 'listing__derived_bookings_1', - 'listing__discrete_booking_value_p99', 'listing__discrete_booking_value_p99', 'listing__double_counted_delayed_bookings', - 'listing__double_counted_delayed_bookings', 'listing__ds__day', 'listing__ds__extract_day', 'listing__ds__extract_dow', @@ -327,95 +342,80 @@ 'listing__ds__extract_quarter', 'listing__ds__extract_year', 'listing__instant_booking_fraction_of_max_value', - 'listing__instant_booking_fraction_of_max_value', 'listing__instant_booking_value', - 'listing__instant_booking_value', - 'listing__instant_booking_value_ratio', 'listing__instant_booking_value_ratio', 'listing__instant_bookings', - 'listing__instant_bookings', - 'listing__instant_lux_booking_value_rate', 'listing__instant_lux_booking_value_rate', 'listing__instant_plus_non_referred_bookings_pct', - 'listing__instant_plus_non_referred_bookings_pct', 'listing__is_lux_latest', 'listing__largest_listing', 'listing__listings', 'listing__lux_booking_fraction_of_max_value', - 'listing__lux_booking_fraction_of_max_value', - 'listing__lux_booking_value_rate_expr', 'listing__lux_booking_value_rate_expr', 'listing__lux_listing', 'listing__lux_listings', 'listing__max_booking_value', - 'listing__max_booking_value', - 'listing__median_booking_value', 'listing__median_booking_value', 'listing__min_booking_value', - 'listing__min_booking_value', - 'listing__nested_fill_nulls_without_time_spine', 'listing__nested_fill_nulls_without_time_spine', 'listing__non_referred_bookings_pct', - 'listing__non_referred_bookings_pct', - 'listing__referred_bookings', 'listing__referred_bookings', 'listing__smallest_listing', 'listing__twice_bookings_fill_nulls_with_0_without_time_spine', - 'listing__twice_bookings_fill_nulls_with_0_without_time_spine', 'listing__user', - 'listing__views', + 'listing__view__listing__views', 'listing__views', 'listing__views_times_booking_value', 'lux_listing', - 'lux_listing__active_listings', - 'lux_listing__approximate_continuous_booking_value_p99', - 'lux_listing__approximate_discrete_booking_value_p99', - 'lux_listing__average_booking_value', - 'lux_listing__average_instant_booking_value', - 'lux_listing__bookers', - 'lux_listing__booking_fees', - 'lux_listing__booking_fees_per_booker', - 'lux_listing__booking_payments', - 'lux_listing__booking_value', - 'lux_listing__booking_value_for_non_null_listing_id', - 'lux_listing__booking_value_p99', - 'lux_listing__booking_value_per_view', - 'lux_listing__booking_value_sub_instant', - 'lux_listing__booking_value_sub_instant_add_10', - 'lux_listing__bookings', - 'lux_listing__bookings_fill_nulls_with_0', - 'lux_listing__bookings_fill_nulls_with_0_without_time_spine', - 'lux_listing__bookings_join_to_time_spine', - 'lux_listing__bookings_per_booker', - 'lux_listing__bookings_per_dollar', - 'lux_listing__bookings_per_listing', - 'lux_listing__bookings_per_lux_listing_derived', - 'lux_listing__bookings_per_view', - 'lux_listing__derived_bookings_0', - 'lux_listing__derived_bookings_1', - 'lux_listing__discrete_booking_value_p99', - 'lux_listing__double_counted_delayed_bookings', - 'lux_listing__instant_booking_fraction_of_max_value', - 'lux_listing__instant_booking_value', - 'lux_listing__instant_booking_value_ratio', - 'lux_listing__instant_bookings', - 'lux_listing__instant_lux_booking_value_rate', - 'lux_listing__instant_plus_non_referred_bookings_pct', - 'lux_listing__largest_listing', - 'lux_listing__listings', - 'lux_listing__lux_booking_fraction_of_max_value', - 'lux_listing__lux_booking_value_rate_expr', - 'lux_listing__lux_listings', - 'lux_listing__max_booking_value', - 'lux_listing__median_booking_value', - 'lux_listing__min_booking_value', - 'lux_listing__nested_fill_nulls_without_time_spine', - 'lux_listing__non_referred_bookings_pct', - 'lux_listing__referred_bookings', - 'lux_listing__smallest_listing', - 'lux_listing__twice_bookings_fill_nulls_with_0_without_time_spine', - 'lux_listing__views', - 'lux_listing__views_times_booking_value', + 'lux_listing__listing__lux_listing__active_listings', + 'lux_listing__listing__lux_listing__approximate_continuous_booking_value_p99', + 'lux_listing__listing__lux_listing__approximate_discrete_booking_value_p99', + 'lux_listing__listing__lux_listing__average_booking_value', + 'lux_listing__listing__lux_listing__average_instant_booking_value', + 'lux_listing__listing__lux_listing__bookers', + 'lux_listing__listing__lux_listing__booking_fees', + 'lux_listing__listing__lux_listing__booking_fees_per_booker', + 'lux_listing__listing__lux_listing__booking_payments', + 'lux_listing__listing__lux_listing__booking_value', + 'lux_listing__listing__lux_listing__booking_value_for_non_null_listing_id', + 'lux_listing__listing__lux_listing__booking_value_p99', + 'lux_listing__listing__lux_listing__booking_value_per_view', + 'lux_listing__listing__lux_listing__booking_value_sub_instant', + 'lux_listing__listing__lux_listing__booking_value_sub_instant_add_10', + 'lux_listing__listing__lux_listing__bookings', + 'lux_listing__listing__lux_listing__bookings_fill_nulls_with_0', + 'lux_listing__listing__lux_listing__bookings_fill_nulls_with_0_without_time_spine', + 'lux_listing__listing__lux_listing__bookings_join_to_time_spine', + 'lux_listing__listing__lux_listing__bookings_per_booker', + 'lux_listing__listing__lux_listing__bookings_per_dollar', + 'lux_listing__listing__lux_listing__bookings_per_listing', + 'lux_listing__listing__lux_listing__bookings_per_lux_listing_derived', + 'lux_listing__listing__lux_listing__bookings_per_view', + 'lux_listing__listing__lux_listing__derived_bookings_0', + 'lux_listing__listing__lux_listing__derived_bookings_1', + 'lux_listing__listing__lux_listing__discrete_booking_value_p99', + 'lux_listing__listing__lux_listing__double_counted_delayed_bookings', + 'lux_listing__listing__lux_listing__instant_booking_fraction_of_max_value', + 'lux_listing__listing__lux_listing__instant_booking_value', + 'lux_listing__listing__lux_listing__instant_booking_value_ratio', + 'lux_listing__listing__lux_listing__instant_bookings', + 'lux_listing__listing__lux_listing__instant_lux_booking_value_rate', + 'lux_listing__listing__lux_listing__instant_plus_non_referred_bookings_pct', + 'lux_listing__listing__lux_listing__largest_listing', + 'lux_listing__listing__lux_listing__listings', + 'lux_listing__listing__lux_listing__lux_booking_fraction_of_max_value', + 'lux_listing__listing__lux_listing__lux_booking_value_rate_expr', + 'lux_listing__listing__lux_listing__lux_listings', + 'lux_listing__listing__lux_listing__max_booking_value', + 'lux_listing__listing__lux_listing__median_booking_value', + 'lux_listing__listing__lux_listing__min_booking_value', + 'lux_listing__listing__lux_listing__nested_fill_nulls_without_time_spine', + 'lux_listing__listing__lux_listing__non_referred_bookings_pct', + 'lux_listing__listing__lux_listing__referred_bookings', + 'lux_listing__listing__lux_listing__smallest_listing', + 'lux_listing__listing__lux_listing__twice_bookings_fill_nulls_with_0_without_time_spine', + 'lux_listing__listing__lux_listing__views', + 'lux_listing__listing__lux_listing__views_times_booking_value', 'metric_time__day', 'revenue_instance__ds__day', 'revenue_instance__ds__extract_day', @@ -426,43 +426,22 @@ 'revenue_instance__ds__extract_year', 'revenue_instance__user', 'session', + 'session__visit__session__visit_buy_conversion_rate', + 'session__visit__session__visit_buy_conversion_rate_7days', + 'session__visit__session__visit_buy_conversion_rate_7days_fill_nulls_with_0', + 'session__visit__session__visit_buy_conversion_rate_by_session', + 'session__visit__session__visit_buy_conversions', 'session__visit_buy_conversion_rate', - 'session__visit_buy_conversion_rate', - 'session__visit_buy_conversion_rate_7days', 'session__visit_buy_conversion_rate_7days', 'session__visit_buy_conversion_rate_7days_fill_nulls_with_0', - 'session__visit_buy_conversion_rate_7days_fill_nulls_with_0', - 'session__visit_buy_conversion_rate_by_session', 'session__visit_buy_conversion_rate_by_session', 'session__visit_buy_conversions', - 'session__visit_buy_conversions', 'session_id', 'user', + 'user__account__user__current_account_balance_by_user', + 'user__account__user__regional_starting_balance_ratios', + 'user__account__user__total_account_balance_first_day', 'user__active_listings', - 'user__active_listings', - 'user__approximate_continuous_booking_value_p99', - 'user__approximate_discrete_booking_value_p99', - 'user__average_booking_value', - 'user__average_instant_booking_value', - 'user__bookers', - 'user__booking_fees', - 'user__booking_fees_per_booker', - 'user__booking_payments', - 'user__booking_value', - 'user__booking_value_for_non_null_listing_id', - 'user__booking_value_p99', - 'user__booking_value_per_view', - 'user__booking_value_sub_instant', - 'user__booking_value_sub_instant_add_10', - 'user__bookings', - 'user__bookings_fill_nulls_with_0', - 'user__bookings_fill_nulls_with_0_without_time_spine', - 'user__bookings_join_to_time_spine', - 'user__bookings_per_booker', - 'user__bookings_per_dollar', - 'user__bookings_per_listing', - 'user__bookings_per_lux_listing_derived', - 'user__bookings_per_view', 'user__company', 'user__company_name', 'user__created_at__day', @@ -473,11 +452,6 @@ 'user__created_at__extract_quarter', 'user__created_at__extract_year', 'user__current_account_balance_by_user', - 'user__current_account_balance_by_user', - 'user__derived_bookings_0', - 'user__derived_bookings_1', - 'user__discrete_booking_value_p99', - 'user__double_counted_delayed_bookings', 'user__ds__day', 'user__ds__extract_day', 'user__ds__extract_dow', @@ -502,51 +476,77 @@ 'user__home_state', 'user__home_state_latest', 'user__identity_verifications', - 'user__identity_verifications', - 'user__instant_booking_fraction_of_max_value', - 'user__instant_booking_value', - 'user__instant_booking_value_ratio', - 'user__instant_bookings', - 'user__instant_lux_booking_value_rate', - 'user__instant_plus_non_referred_bookings_pct', - 'user__largest_listing', 'user__largest_listing', + 'user__listing__user__active_listings', + 'user__listing__user__approximate_continuous_booking_value_p99', + 'user__listing__user__approximate_discrete_booking_value_p99', + 'user__listing__user__average_booking_value', + 'user__listing__user__average_instant_booking_value', + 'user__listing__user__bookers', + 'user__listing__user__booking_fees', + 'user__listing__user__booking_fees_per_booker', + 'user__listing__user__booking_payments', + 'user__listing__user__booking_value', + 'user__listing__user__booking_value_for_non_null_listing_id', + 'user__listing__user__booking_value_p99', + 'user__listing__user__booking_value_per_view', + 'user__listing__user__booking_value_sub_instant', + 'user__listing__user__booking_value_sub_instant_add_10', + 'user__listing__user__bookings', + 'user__listing__user__bookings_fill_nulls_with_0', + 'user__listing__user__bookings_fill_nulls_with_0_without_time_spine', + 'user__listing__user__bookings_join_to_time_spine', + 'user__listing__user__bookings_per_booker', + 'user__listing__user__bookings_per_dollar', + 'user__listing__user__bookings_per_listing', + 'user__listing__user__bookings_per_lux_listing_derived', + 'user__listing__user__bookings_per_view', + 'user__listing__user__derived_bookings_0', + 'user__listing__user__derived_bookings_1', + 'user__listing__user__discrete_booking_value_p99', + 'user__listing__user__double_counted_delayed_bookings', + 'user__listing__user__instant_booking_fraction_of_max_value', + 'user__listing__user__instant_booking_value', + 'user__listing__user__instant_booking_value_ratio', + 'user__listing__user__instant_bookings', + 'user__listing__user__instant_lux_booking_value_rate', + 'user__listing__user__instant_plus_non_referred_bookings_pct', + 'user__listing__user__largest_listing', + 'user__listing__user__listings', + 'user__listing__user__lux_booking_fraction_of_max_value', + 'user__listing__user__lux_booking_value_rate_expr', + 'user__listing__user__lux_listings', + 'user__listing__user__max_booking_value', + 'user__listing__user__median_booking_value', + 'user__listing__user__min_booking_value', + 'user__listing__user__nested_fill_nulls_without_time_spine', + 'user__listing__user__non_referred_bookings_pct', + 'user__listing__user__referred_bookings', + 'user__listing__user__smallest_listing', + 'user__listing__user__twice_bookings_fill_nulls_with_0_without_time_spine', + 'user__listing__user__views', + 'user__listing__user__views_times_booking_value', 'user__listings', - 'user__listings', - 'user__lux_booking_fraction_of_max_value', - 'user__lux_booking_value_rate_expr', - 'user__lux_listings', 'user__lux_listings', - 'user__max_booking_value', - 'user__median_booking_value', - 'user__min_booking_value', - 'user__nested_fill_nulls_without_time_spine', - 'user__non_referred_bookings_pct', - 'user__referred_bookings', 'user__regional_starting_balance_ratios', - 'user__regional_starting_balance_ratios', - 'user__revenue', 'user__revenue', 'user__revenue_all_time', - 'user__revenue_all_time', - 'user__smallest_listing', + 'user__revenue_instance__user__revenue', + 'user__revenue_instance__user__revenue_all_time', 'user__smallest_listing', 'user__total_account_balance_first_day', - 'user__total_account_balance_first_day', - 'user__twice_bookings_fill_nulls_with_0_without_time_spine', - 'user__views', + 'user__verification__user__identity_verifications', + 'user__view__user__views', 'user__views', - 'user__views', - 'user__views_times_booking_value', - 'user__visit_buy_conversion_rate', + 'user__visit__user__visit_buy_conversion_rate', + 'user__visit__user__visit_buy_conversion_rate_7days', + 'user__visit__user__visit_buy_conversion_rate_7days_fill_nulls_with_0', + 'user__visit__user__visit_buy_conversion_rate_by_session', + 'user__visit__user__visit_buy_conversions', 'user__visit_buy_conversion_rate', 'user__visit_buy_conversion_rate_7days', - 'user__visit_buy_conversion_rate_7days', - 'user__visit_buy_conversion_rate_7days_fill_nulls_with_0', 'user__visit_buy_conversion_rate_7days_fill_nulls_with_0', 'user__visit_buy_conversion_rate_by_session', - 'user__visit_buy_conversion_rate_by_session', - 'user__visit_buy_conversions', 'user__visit_buy_conversions', 'verification', 'verification__ds__day', diff --git a/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_metric_where_filter__dfp_0.xml b/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_metric_where_filter__dfp_0.xml index ee8baf4369..baf5a85a3e 100644 --- a/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_metric_where_filter__dfp_0.xml +++ b/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_metric_where_filter__dfp_0.xml @@ -69,7 +69,7 @@ - + diff --git a/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_query_where_filter__dfp_0.xml b/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_query_where_filter__dfp_0.xml index 1e418ddb68..7b66adf86f 100644 --- a/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_query_where_filter__dfp_0.xml +++ b/tests_metricflow/snapshots/test_dataflow_plan_builder.py/DataflowPlan/test_metric_in_query_where_filter__dfp_0.xml @@ -89,7 +89,7 @@ - + diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0.sql index e899374cbf..af2d1974cd 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0.sql @@ -24,7 +24,7 @@ FROM ( FROM ***************************.dim_lux_listing_id_mapping lux_listing_mapping_src_28000 ) subq_4 FULL OUTER JOIN ( - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT subq_9.listing , subq_9.bookings diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0_optimized.sql index ceb44d1602..28223e439b 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_distinct_values_query_with_metric_filter__plan0_optimized.sql @@ -11,7 +11,7 @@ FROM ( FULL OUTER JOIN ( -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT listing , SUM(bookings) AS bookings diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0.sql index 65a3c59db6..2b315eab94 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0.sql @@ -227,7 +227,7 @@ FROM ( ) subq_5 ) subq_6 LEFT OUTER JOIN ( - -- Pass Only Elements: ['guest', 'booking_value'] + -- Pass Only Elements: ['guest', 'guest__booking_value'] SELECT subq_11.guest , subq_11.booking_value diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0_optimized.sql index d7ee2ded1b..53c4da07c1 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_filter_by_metric_in_same_semantic_model_as_queried_metric__plan0_optimized.sql @@ -25,7 +25,7 @@ FROM ( -- Pass Only Elements: ['booking_value', 'guest'] -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['guest', 'booking_value'] + -- Pass Only Elements: ['guest', 'guest__booking_value'] SELECT guest_id AS guest , SUM(booking_value) AS booking_value diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0.sql index 09749c68b5..503523e9cd 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0.sql @@ -227,7 +227,7 @@ FROM ( ) subq_5 ) subq_6 LEFT OUTER JOIN ( - -- Pass Only Elements: ['guest', 'bookers'] + -- Pass Only Elements: ['guest', 'guest__bookers'] SELECT subq_11.guest , subq_11.bookers diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0_optimized.sql index eb7a693290..07a356a39c 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_filtered_by_itself__plan0_optimized.sql @@ -25,7 +25,7 @@ FROM ( -- Pass Only Elements: ['bookers', 'guest'] -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['guest', 'bookers'] + -- Pass Only Elements: ['guest', 'guest__bookers'] SELECT guest_id AS guest , COUNT(DISTINCT guest_id) AS bookers diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0.sql index 62adc84823..575a247d37 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0.sql @@ -171,7 +171,7 @@ FROM ( ) subq_5 ) subq_6 LEFT OUTER JOIN ( - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT subq_11.listing , subq_11.bookings diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0_optimized.sql index 903c2101af..1ad72fa0ef 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_metric_with_metric_in_where_filter__plan0_optimized.sql @@ -25,7 +25,7 @@ FROM ( LEFT OUTER JOIN ( -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT listing , SUM(bookings) AS bookings diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0.sql index 6b74b95a17..3a031bcabc 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0.sql @@ -164,7 +164,7 @@ FROM ( ) subq_5 ) subq_6 LEFT OUTER JOIN ( - -- Pass Only Elements: ['user', 'revenue_all_time'] + -- Pass Only Elements: ['user', 'user__revenue_all_time'] SELECT subq_11.user , subq_11.revenue_all_time diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0_optimized.sql index a792c0fd8c..ca59324e35 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_cumulative_metric_in_where_filter__plan0_optimized.sql @@ -25,7 +25,7 @@ FROM ( -- Pass Only Elements: ['txn_revenue', 'user'] -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['user', 'revenue_all_time'] + -- Pass Only Elements: ['user', 'user__revenue_all_time'] SELECT user_id AS user , SUM(revenue) AS revenue_all_time diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0.sql index 77c1a58da0..c0386038eb 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0.sql @@ -164,7 +164,7 @@ FROM ( ) subq_12 ) subq_13 LEFT OUTER JOIN ( - -- Pass Only Elements: ['listing', 'views_times_booking_value'] + -- Pass Only Elements: ['listing', 'listing__views_times_booking_value'] SELECT subq_25.listing , subq_25.views_times_booking_value diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0_optimized.sql index 26cfeb4e15..d91def71f1 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_derived_metric_in_where_filter__plan0_optimized.sql @@ -21,7 +21,7 @@ FROM ( ) subq_34 LEFT OUTER JOIN ( -- Compute Metrics via Expressions - -- Pass Only Elements: ['listing', 'views_times_booking_value'] + -- Pass Only Elements: ['listing', 'listing__views_times_booking_value'] SELECT listing , booking_value * views AS views_times_booking_value diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0.sql index 7216cec41a..c8ea694bf4 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0.sql @@ -167,7 +167,7 @@ FROM ( ) subq_9 ) subq_10 LEFT OUTER JOIN ( - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT subq_15.listing , subq_15.bookings @@ -390,7 +390,7 @@ FROM ( ON subq_10.listing = subq_16.listing LEFT OUTER JOIN ( - -- Pass Only Elements: ['listing', 'bookers'] + -- Pass Only Elements: ['listing', 'listing__bookers'] SELECT subq_21.listing , subq_21.bookers diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0_optimized.sql index f79437fa1d..746675a7dc 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_multiple_metrics_in_filter__plan0_optimized.sql @@ -23,7 +23,7 @@ FROM ( LEFT OUTER JOIN ( -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT listing , SUM(bookings) AS bookings @@ -47,7 +47,7 @@ FROM ( -- Pass Only Elements: ['bookers', 'listing'] -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['listing', 'bookers'] + -- Pass Only Elements: ['listing', 'listing__bookers'] SELECT listing_id AS listing , COUNT(DISTINCT guest_id) AS bookers diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_ratio_metric_in_where_filter__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_ratio_metric_in_where_filter__plan0.sql index b0c7913eb8..83ffdd692a 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_ratio_metric_in_where_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_ratio_metric_in_where_filter__plan0.sql @@ -164,7 +164,7 @@ FROM ( ) subq_12 ) subq_13 LEFT OUTER JOIN ( - -- Pass Only Elements: ['listing', 'bookings_per_booker'] + -- Pass Only Elements: ['listing', 'listing__bookings_per_booker'] SELECT subq_25.listing , subq_25.bookings_per_booker diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0.sql index 568e713172..e81b40e399 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0.sql @@ -164,7 +164,7 @@ FROM ( ) subq_5 ) subq_6 LEFT OUTER JOIN ( - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT subq_11.listing , subq_11.bookings diff --git a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0_optimized.sql b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0_optimized.sql index 15f82749c5..d453137357 100644 --- a/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0_optimized.sql +++ b/tests_metricflow/snapshots/test_metric_filter_rendering.py/SqlQueryPlan/DuckDB/test_query_with_simple_metric_in_where_filter__plan0_optimized.sql @@ -22,7 +22,7 @@ FROM ( LEFT OUTER JOIN ( -- Aggregate Measures -- Compute Metrics via Expressions - -- Pass Only Elements: ['listing', 'bookings'] + -- Pass Only Elements: ['listing', 'listing__bookings'] SELECT listing , SUM(bookings) AS bookings