Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20251010-132547.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Mark tests from `test_dataflow_to_sql_plan.py` as DuckDB-Only
time: 2025-10-10T13:25:47.926875-07:00
custom:
Author: plypaul
Issue: "1896"
3 changes: 3 additions & 0 deletions tests_metricflow/dataset/test_convert_semantic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
logger = logging.getLogger(__name__)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_convert_table_semantic_model_without_measures(
request: FixtureRequest,
Expand Down Expand Up @@ -44,6 +45,7 @@ def test_convert_table_semantic_model_without_measures(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_convert_table_semantic_model_with_measures(
request: FixtureRequest,
Expand Down Expand Up @@ -79,6 +81,7 @@ def test_convert_table_semantic_model_with_measures(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_convert_query_semantic_model( # noqa: D103
request: FixtureRequest,
Expand Down
20 changes: 20 additions & 0 deletions tests_metricflow/plan_conversion/test_dataflow_to_sql_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def convert_and_check(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_source_node(
request: FixtureRequest,
Expand All @@ -138,6 +139,7 @@ def test_source_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_filter_node(
request: FixtureRequest,
Expand Down Expand Up @@ -166,6 +168,7 @@ def test_filter_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_filter_with_where_constraint_node(
request: FixtureRequest,
Expand Down Expand Up @@ -227,6 +230,7 @@ def test_filter_with_where_constraint_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_measure_aggregation_node(
request: FixtureRequest,
Expand Down Expand Up @@ -275,6 +279,7 @@ def test_measure_aggregation_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_single_join_node(
request: FixtureRequest,
Expand Down Expand Up @@ -336,6 +341,7 @@ def test_single_join_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_multi_join_node(
request: FixtureRequest,
Expand Down Expand Up @@ -401,6 +407,7 @@ def test_multi_join_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_compute_metrics_node(
request: FixtureRequest,
Expand Down Expand Up @@ -475,6 +482,7 @@ def test_compute_metrics_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_compute_metrics_node_simple_expr(
request: FixtureRequest,
Expand Down Expand Up @@ -561,6 +569,7 @@ def test_compute_metrics_node_simple_expr(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_compute_metrics_node_ratio_from_single_semantic_model(
request: FixtureRequest,
Expand Down Expand Up @@ -636,6 +645,7 @@ def test_compute_metrics_node_ratio_from_single_semantic_model(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_order_by_node(
request: FixtureRequest,
Expand Down Expand Up @@ -708,6 +718,7 @@ def test_order_by_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
@pytest.mark.duckdb_only
def test_offset_by_custom_granularity_node( # noqa: D103
Expand All @@ -734,6 +745,7 @@ def test_offset_by_custom_granularity_node( # noqa: D103
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
@pytest.mark.duckdb_only
def test_offset_custom_granularity_node( # noqa: D103
Expand Down Expand Up @@ -762,6 +774,7 @@ def test_offset_custom_granularity_node( # noqa: D103
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_semi_additive_join_node(
request: FixtureRequest,
Expand Down Expand Up @@ -797,6 +810,7 @@ def test_semi_additive_join_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_semi_additive_join_node_with_queried_group_by(
request: FixtureRequest,
Expand Down Expand Up @@ -837,6 +851,7 @@ def test_semi_additive_join_node_with_queried_group_by(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_semi_additive_join_node_with_grouping(
request: FixtureRequest,
Expand Down Expand Up @@ -876,6 +891,7 @@ def test_semi_additive_join_node_with_grouping(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_constrain_time_range_node(
request: FixtureRequest,
Expand Down Expand Up @@ -927,6 +943,7 @@ def test_constrain_time_range_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_compute_metrics_node_ratio_from_multiple_semantic_models(
request: FixtureRequest,
Expand Down Expand Up @@ -964,6 +981,7 @@ def test_compute_metrics_node_ratio_from_multiple_semantic_models(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_combine_output_node(
request: FixtureRequest,
Expand Down Expand Up @@ -1028,6 +1046,7 @@ def test_combine_output_node(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_dimensions_requiring_join(
request: FixtureRequest,
Expand All @@ -1054,6 +1073,7 @@ def test_dimensions_requiring_join(
)


@pytest.mark.duckdb_only
@pytest.mark.sql_engine_snapshot
def test_dimension_with_joined_where_constraint(
request: FixtureRequest,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading