-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow querying SCDs without
metric_time
(#1621)
Remove query validation that requires including `metric_time` in the group by if your query includes an SCD. After much product discussion, we've decided this aligns the behavior users expect for SCDs.
- Loading branch information
1 parent
8569035
commit fb421a5
Showing
53 changed files
with
11,315 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: Allow querying SCDs without metric_time. | ||
time: 2025-01-24T13:35:35.800322-08:00 | ||
custom: | ||
Author: courtneyholcomb | ||
Issue: "1621" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...ts/test_query_parser.py/str/test_join_through_scd_no_time_dimension_validation__error.txt
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...apshots/test_query_parser.py/str/test_join_to_scd_no_time_dimension_validation__error.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ots/test_query_output.py/str/DuckDB/test_scd_filter_without_metric_time__query_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
test_name: test_scd_filter_without_metric_time | ||
test_filename: test_query_output.py | ||
--- | ||
family_bookings | ||
----------------- | ||
9 |
8 changes: 8 additions & 0 deletions
8
...s/test_query_output.py/str/DuckDB/test_scd_group_by_without_metric_time__query_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
test_name: test_scd_group_by_without_metric_time | ||
test_filename: test_query_output.py | ||
--- | ||
listing__capacity family_bookings | ||
------------------- ----------------- | ||
3 2 | ||
4 5 | ||
5 2 |
8 changes: 8 additions & 0 deletions
8
...w/snapshots/test_query_output.py/str/DuckDB/test_scd_with_coarser_grain__query_output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
test_name: test_scd_with_coarser_grain | ||
test_filename: test_query_output.py | ||
--- | ||
metric_time__month listing__capacity family_bookings | ||
-------------------- ------------------- ----------------- | ||
2020-01-01T00:00:00 3 2 | ||
2020-01-01T00:00:00 4 5 | ||
2020-01-01T00:00:00 5 2 |
Oops, something went wrong.