diff --git a/metricflow/test/snapshots/test_column_pruner.py/SqlQueryPlan/test_prune_distinct_select__after_pruning.sql b/metricflow/test/snapshots/test_column_pruner.py/SqlQueryPlan/test_prune_distinct_select__after_pruning.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_column_pruner.py/SqlQueryPlan/test_prune_distinct_select__after_pruning.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_column_pruner.py/SqlQueryPlan/test_prune_distinct_select__before_pruning.sql b/metricflow/test/snapshots/test_column_pruner.py/SqlQueryPlan/test_prune_distinct_select__before_pruning.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_column_pruner.py/SqlQueryPlan/test_prune_distinct_select__before_pruning.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node__after_reducing.sql b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node__after_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node__after_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node__before_reducing.sql b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node__before_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node__before_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node_is_not_reduced__after_reducing.sql b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node_is_not_reduced__after_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node_is_not_reduced__after_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node_is_not_reduced__before_reducing.sql b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node_is_not_reduced__before_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_rewriting_sub_query_reducer.py/SqlQueryPlan/test_rewriting_distinct_select_node_is_not_reduced__before_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_distinct_select_node_is_not_reduced__after_reducing.sql b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_distinct_select_node_is_not_reduced__after_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_distinct_select_node_is_not_reduced__after_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_distinct_select_node_is_not_reduced__before_reducing.sql b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_distinct_select_node_is_not_reduced__before_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_distinct_select_node_is_not_reduced__before_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_rewrite_distinct_select_node__after_reducing.sql b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_rewrite_distinct_select_node__after_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_rewrite_distinct_select_node__after_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b diff --git a/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_rewrite_distinct_select_node__before_reducing.sql b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_rewrite_distinct_select_node__before_reducing.sql new file mode 100644 index 0000000000..9acdadd458 --- /dev/null +++ b/metricflow/test/snapshots/test_sub_query_reducer.py/SqlQueryPlan/test_rewrite_distinct_select_node__before_reducing.sql @@ -0,0 +1,10 @@ +-- test0 +SELECT + a.booking_value +FROM ( + -- test1 + SELECT DISTINCT + a.booking_value + , a.bookings + FROM demo.fct_bookings a +) b