-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of
MetricTimeQueryValidationRule
(#1481)
This PR improves the performance of `MetricTimeQueryValidationRule`. One of the reasons for the slow performance is that it currently makes calls to `get_joinable_scd_specs_for_metric`, which can be slow with large manifests. Instead, this runs checks based on the resolved group-by-items, which is a much smaller set.
- Loading branch information
Showing
4 changed files
with
102 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ Error #1: | |
|
||
[Resolve Query(['bookings'])] | ||
-> [Resolve Metric('bookings')] | ||
-> [Resolve Measure('bookings')] |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ Error #1: | |
|
||
[Resolve Query(['bookings'])] | ||
-> [Resolve Metric('bookings')] | ||
-> [Resolve Measure('bookings')] |