diff --git a/tests_metricflow/integration/test_cases/itest_dimensions.yaml b/tests_metricflow/integration/test_cases/itest_dimensions.yaml index fc820976fe..d4101b0d65 100644 --- a/tests_metricflow/integration/test_cases/itest_dimensions.yaml +++ b/tests_metricflow/integration/test_cases/itest_dimensions.yaml @@ -373,3 +373,17 @@ integration_test: ) outer_subq WHERE listing__bookings > 2 GROUP BY listing +--- +integration_test: + name: just_listings + description: Query without metrics using a metric filter + model: SIMPLE_MODEL + group_bys: ["listing"] + # I don't see how you could specify you want listing from the listings_latest source + check_query: | + SELECT + listing_id AS listing + FROM {{ source_schema }}.dim_lux_listing_id_mapping l + GROUP BY + listing_id + \ No newline at end of file diff --git a/tests_metricflow/integration/test_configured_cases.py b/tests_metricflow/integration/test_configured_cases.py index d99ac2473f..a6a8d5ca94 100644 --- a/tests_metricflow/integration/test_configured_cases.py +++ b/tests_metricflow/integration/test_configured_cases.py @@ -233,7 +233,7 @@ def filter_not_supported_features( @pytest.mark.parametrize( "name", # CONFIGURED_INTEGRATION_TESTS_REPOSITORY.all_test_case_names, - ["itest_dimensions.yaml/distinct_values_query_with_metric_filter"], + ["itest_dimensions.yaml/just_listings"], ids=lambda name: f"name={name}", ) def test_case( @@ -338,6 +338,7 @@ def test_case( ) actual = query_result.result_df + # assert 0, query_result.sql expected = sql_client.query( jinja2.Template(