Skip to content

[BUG] Typo for the groupBy #952

@piedrot

Description

@piedrot

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)

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions