-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Minor Change
-
Query Optimization 2021-05-03, Query Optimization 2021-05-17
When the sortBy field is a date, $derivative requires an outputUnit so it can convert a 1/time quantity to a unitless value. Conversely, when the sortBy field is unitless, $derivative requires outputUnit to be omitted.
In both cases, we should throw an error instead of returning null. That should make it clearer how to fix a query where the presence/absence of 'outputUnit' doesn't match the data.