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-829) Section 7.2, Examples 50: aggregate returns one item even for empty input set


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

Ralf Handl updated ODATA-829:
-----------------------------

    Resolution: https://www.oasis-open.org/committees/download.php/56091/odata-data-aggregation-ext-v4.0-wd03-2015-07-14.docx

> Section 7.2, Examples 50: aggregate returns one item even for empty input set
> -----------------------------------------------------------------------------
>
>                 Key: ODATA-829
>                 URL: https://issues.oasis-open.org/browse/ODATA-829
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData Extension for Data Aggregation
>    Affects Versions: V4.0_CS01
>         Environment: [Applied]
>            Reporter: Ralf Handl
>            Priority: Minor
>             Fix For: V4.0_CSD03
>
>
> Example 50 shows an empty collection value for the Sales navigation property in the third item, but according to the definition of aggregate() it will return a single instance even if the input set is empty. And according to the definition of aggregation method sum the sum over no values is null, hence the Sales navigation property will contain one item with a Total of null.
> The important point is that the group for product "Pencil" exists because the aggregation base set is the Products entity set, not the Sales entity set.



--
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]