-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Describe the bug
Hello,
I think there is a typo in the groupBy string used to construct the request.
Following the doc and facing this issue when requesting a SAP system, it should be groupby instead of groupBy.
https://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs01/odata-data-aggregation-ext-v4.0-cs01.html#_To
Thank you for your project!
System Environment
All
To Reproduce
We can use the example in the doc :
// $apply=groupBy((Time),aggregate(Amount with sum as Total))/aggregate(Total with average as DailyAverage)
OData.newOptions().apply( [ transformation().groupBy( ['Time'], transformation().aggregate('Amount with sum as Total') ), transformation().aggregate('Total with average as DailyAverage'), ] )
Expected behavior
The result should be:
$apply=groupby((Time),aggregate(Amount with sum as Total))/aggregate(Total with average as DailyAverage)