OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (ODATA-702) Define the behaviour of system query option $count and path segment /$count in combination with $apply


     [ https://issues.oasis-open.org/browse/ODATA-702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralf Handl updated ODATA-702:
-----------------------------

    Environment: [Proposed]
    Description: 
Assume GET ~/Products/$count results in 100.
Assume GET ~/Products?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total)) results in a set with 4 entries (see example 50)

What is the response for GET ~/Products/$count?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total))?

What is the value of @odata.count in the response for GET ~/Products?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total))&$count=true?

My proposal is: in both cases 4.

  was:
Assume GET ~/Products/$count results in 100.
Assume GET ~/Products?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total)) results in a set with 4 entries (see example 50)

What is the response for GET ~/Products/$count?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total))?
What is the value of @odata.count in the response for GET ~/Products/$count?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total))&$count=true?

My proposal is: in both cases 4.

       Proposal: 
Adapt 3.15 "Evaluating $apply" accordingly.

$apply on resource paths ending in /$count acts on the set "preceding" the /$count, the result is the plain-text number of items in the result of $apply, similar to the combination of /$count and $filter

$count system query option is executed after $apply, @odata.count contains the number of items in the result of $apply

  was:Adapt 3.15 "Evaluating $apply" accordingly.


> Define the behaviour of system query option $count and path segment /$count in combination with $apply 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: ODATA-702
>                 URL: https://issues.oasis-open.org/browse/ODATA-702
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData Extension for Data Aggregation
>    Affects Versions: V4.0_CSD01
>         Environment: [Proposed]
>            Reporter: Martin Zurmuehl
>             Fix For: V4.0_CSD03
>
>
> Assume GET ~/Products/$count results in 100.
> Assume GET ~/Products?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total)) results in a set with 4 entries (see example 50)
> What is the response for GET ~/Products/$count?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total))?
> What is the value of @odata.count in the response for GET ~/Products?$apply=groupby((Name), aggregate(Sales/Amount with sum as Total))&$count=true?
> My proposal is: in both cases 4.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]