-
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.
Dedupe qualified name for
GroupByMetricSpecs
(#1171)
Typically, a spec's qualified name is `<entity_links>__<element_name>`. In the case of `GroupByMetricSpecs`, this name isn't guaranteed to be unique. That's because the `metric_subquery_entity_links` are not accounted for. This will also be a problem in SQL generation, since you could end up with a query that references two different group by metrics by the same column name. To avoid that, here I added some deduping logic for the qualified name. 1. If `entity_links` matches `metric_subquery_entity_links`, use the standard qualified name. 2. If they don't match, include both, e.g., `<entity_links>__<metric_subquery_entity_links>__<element_name>`. You can still tell where one path ends and the next begins because they will both end with the same entity link, which is the last link before the element name.
- Loading branch information
1 parent
02c3fdd
commit 62db0e8
Showing
125 changed files
with
924 additions
and
923 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
Oops, something went wrong.