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-827) introduce $compute query option


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

Ralf Handl updated ODATA-827:
-----------------------------

    Proposal: 
Add "$compute" query option allowing additional compute properties to be added to each instance. The syntax is identical to the compute() transformation in Data Aggregation, i.e. compute(<list of compute expressions>) -> $compute=<list of compute expressions>. Especially the restriction to simple values remains:

A compute expression is an expression valid in a $filter system query option on the input set that results in a simple value.

$compute is also allowed as query option nested within $expand to add computed simple dynamic properties to expanded entities.

  was:
Add "$compute" query option allowing additional compute properties to be added to each instance.
$compute is allowed as query option applied to $expand.


$compute=... is just a shorthand for $apply=compute(...), and the compute expressions are restricted to simple values, so I see no conflict with $expand.

> introduce $compute query option
> -------------------------------
>
>                 Key: ODATA-827
>                 URL: https://issues.oasis-open.org/browse/ODATA-827
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData Protocol, OData URL Conventions
>    Affects Versions: V4.0_WD01
>         Environment: New Query Capabilities
>            Reporter: Andrew Eisenberg
>              Labels: GoodIdea, Usability
>             Fix For: V4.01_WD01
>
>
> OData could be extended to allow derived computed values to be returned along with the properties of an entity.
> This could be expressed as:
> http://odata.netflix.com/v2/Catalog/Titles?$compute=substring(ShortSynopsis,20) as Summary&$select=Name,Summary
> In ODATA-9 we added support for an equivalent compute transformation in our Data Aggregation Extensions. 



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