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-1427) Clarify treatment of duplicates in OData-Aggr example 7


Heiko Theissen created ODATA-1427:
-------------------------------------

             Summary: Clarify treatment of duplicates in OData-Aggr example 7
                 Key: ODATA-1427
                 URL: https://issues.oasis-open.org/browse/ODATA-1427
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: Data Aggregation
            Reporter: Heiko Theissen


Example 7 in the [{{aggregate ... as}} specification|http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs02/odata-data-aggregation-ext-v4.0-cs02.html#_Toc435016569] leaves unclear whether entities that are reachable via more than one instance path are considered once during aggregation or as often as they are reachable.

Does
{code}
GET CainAndAbel?$apply=aggregate(Parents($count as c))
{code}
count Adam and Eve once or twice (https://www.bibleserver.com/KJV/Genesis4)? Is the result
{code}
"Parents": [{"c": 4}]
{code}
or
{code}
"Parents": [{"c": 2}]
{code}
?



--
This message was sent by Atlassian Jira
(v8.3.3#803004)


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