-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update snapshots to include date_part.
- Loading branch information
Showing
8 changed files
with
524 additions
and
149 deletions.
There are no files selected for viewing
226 changes: 173 additions & 53 deletions
226
...icflow/test/snapshots/test_linkable_spec_resolver.py/str/test_all_properties__result0.txt
Large diffs are not rendered by default.
Oops, something went wrong.
95 changes: 70 additions & 25 deletions
95
.../test/snapshots/test_linkable_spec_resolver.py/str/test_cyclic_join_manifest__result0.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 |
---|---|---|
@@ -1,25 +1,70 @@ | ||
Semantic Model Entity Links Name Time Granularity Properties | ||
---------------------- ------------------ --------------- ------------------ ------------------------------------------- | ||
listings_latest () cyclic_entity ['ENTITY', 'LOCAL'] | ||
listings_latest () listing ['ENTITY', 'LOCAL'] | ||
listings_latest () metric_time DAY ['METRIC_TIME'] | ||
listings_latest () metric_time MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time WEEK ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest ('cyclic_entity',) country_latest ['LOCAL'] | ||
listings_latest ('cyclic_entity',) cyclic_entity ['ENTITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds WEEK ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) country_latest ['LOCAL'] | ||
listings_latest ('listing',) ds DAY ['LOCAL'] | ||
listings_latest ('listing',) ds MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds WEEK ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) listing ['ENTITY', 'LOCAL'] | ||
listings_latest_cyclic ('cyclic_entity',) capacity_latest ['JOINED'] | ||
listings_latest_cyclic ('listing',) capacity_latest ['JOINED'] | ||
Semantic Model Entity Links Name Time Granularity Date Part Properties | ||
---------------------- ------------------ --------------- ------------------ ----------- ------------------------------------------- | ||
listings_latest () cyclic_entity ['ENTITY', 'LOCAL'] | ||
listings_latest () listing ['ENTITY', 'LOCAL'] | ||
listings_latest () metric_time DAY ['METRIC_TIME'] | ||
listings_latest () metric_time DAY DAY ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time DAY DOW ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time DAY DOY ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time DAY MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time DAY QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time DAY YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time MONTH MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time MONTH QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time MONTH YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time QUARTER QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time QUARTER YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time WEEK ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time WEEK MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time WEEK QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time WEEK YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest () metric_time YEAR YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
listings_latest ('cyclic_entity',) country_latest ['LOCAL'] | ||
listings_latest ('cyclic_entity',) cyclic_entity ['ENTITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY DAY ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY DOW ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY DOY ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY MONTH ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY QUARTER ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds DAY YEAR ['LOCAL'] | ||
listings_latest ('cyclic_entity',) ds MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds MONTH MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds MONTH QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds MONTH YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds QUARTER QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds QUARTER YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds WEEK ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds WEEK MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds WEEK QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds WEEK YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('cyclic_entity',) ds YEAR YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) country_latest ['LOCAL'] | ||
listings_latest ('listing',) ds DAY ['LOCAL'] | ||
listings_latest ('listing',) ds DAY DAY ['LOCAL'] | ||
listings_latest ('listing',) ds DAY DOW ['LOCAL'] | ||
listings_latest ('listing',) ds DAY DOY ['LOCAL'] | ||
listings_latest ('listing',) ds DAY MONTH ['LOCAL'] | ||
listings_latest ('listing',) ds DAY QUARTER ['LOCAL'] | ||
listings_latest ('listing',) ds DAY YEAR ['LOCAL'] | ||
listings_latest ('listing',) ds MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds MONTH MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds MONTH QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds MONTH YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds QUARTER QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds QUARTER YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds WEEK ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds WEEK MONTH ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds WEEK QUARTER ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds WEEK YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) ds YEAR YEAR ['DERIVED_TIME_GRANULARITY', 'LOCAL'] | ||
listings_latest ('listing',) listing ['ENTITY', 'LOCAL'] | ||
listings_latest_cyclic ('cyclic_entity',) capacity_latest ['JOINED'] | ||
listings_latest_cyclic ('listing',) capacity_latest ['JOINED'] |
6 changes: 3 additions & 3 deletions
6
...inkable_spec_resolver.py/str/test_metric_time_property_for_cumulative_metric__result0.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Semantic Model Entity Links Name Time Granularity Properties | ||
---------------- -------------- ----------- ------------------ --------------- | ||
revenue () metric_time DAY ['METRIC_TIME'] | ||
Semantic Model Entity Links Name Time Granularity Date Part Properties | ||
---------------- -------------- ----------- ------------------ ----------- --------------- | ||
revenue () metric_time DAY ['METRIC_TIME'] |
54 changes: 42 additions & 12 deletions
54
..._linkable_spec_resolver.py/str/test_metric_time_property_for_derived_metrics__result0.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 |
---|---|---|
@@ -1,12 +1,42 @@ | ||
Semantic Model Entity Links Name Time Granularity Properties | ||
---------------- -------------- ----------- ------------------ ------------------------------------------- | ||
bookings_source () metric_time DAY ['METRIC_TIME'] | ||
bookings_source () metric_time MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time WEEK ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time DAY ['METRIC_TIME'] | ||
views_source () metric_time MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time WEEK ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
Semantic Model Entity Links Name Time Granularity Date Part Properties | ||
---------------- -------------- ----------- ------------------ ----------- ------------------------------------------- | ||
bookings_source () metric_time DAY ['METRIC_TIME'] | ||
bookings_source () metric_time DAY DAY ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time DAY DOW ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time DAY DOY ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time DAY MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time DAY QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time DAY YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time MONTH MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time MONTH QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time MONTH YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time QUARTER QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time QUARTER YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time WEEK ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time WEEK MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time WEEK QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time WEEK YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
bookings_source () metric_time YEAR YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time DAY ['METRIC_TIME'] | ||
views_source () metric_time DAY DAY ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time DAY DOW ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time DAY DOY ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time DAY MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time DAY QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time DAY YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time MONTH MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time MONTH QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time MONTH YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time QUARTER QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time QUARTER YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time WEEK ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time WEEK MONTH ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time WEEK QUARTER ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time WEEK YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] | ||
views_source () metric_time YEAR YEAR ['DERIVED_TIME_GRANULARITY', 'METRIC_TIME'] |
8 changes: 4 additions & 4 deletions
8
metricflow/test/snapshots/test_linkable_spec_resolver.py/str/test_one_property__result0.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Semantic Model Entity Links Name Time Granularity Properties | ||
---------------- -------------- ------- ------------------ ------------------- | ||
bookings_source () listing ['ENTITY', 'LOCAL'] | ||
views_source () listing ['ENTITY', 'LOCAL'] | ||
Semantic Model Entity Links Name Time Granularity Date Part Properties | ||
---------------- -------------- ------- ------------------ ----------- ------------------- | ||
bookings_source () listing ['ENTITY', 'LOCAL'] | ||
views_source () listing ['ENTITY', 'LOCAL'] |
Oops, something went wrong.