-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow custom granularity names in string name to struct conversion
MetricFlow relies on a class called StructuredLinkableSpecName to manage conversion between structured names and their string representations, e.g., `listing__is_lux` or `listing__created_at__month`. Up until now the time granularity component of this naming struct required an enumeration value, which would then be converted to its string representation at serialization time. With custom granularities we need to explicitly allow for a string name for the input time granularity. This implements that change, along with some added enforcement to ensure consistency in how we conver to/from the string representations of these names.
- Loading branch information
Showing
4 changed files
with
47 additions
and
8 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
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