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] Commented: (ODATA-476) Clarify that type-cast segments are NOT required for properties of derived types in system query options


    [ http://tools.oasis-open.org/issues/browse/ODATA-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34767#action_34767 ] 

Michael Pizzo commented on ODATA-476:
-------------------------------------

~Things?$select=ID,State should be illegal if State is not defined on Thing and Thing is not open. That's how it was in V3.

If you want to select the State of the Address or the State of the Device, you would do:

~Things?$select=ID,ns.DeviceState/State,ns.Address/State

The fact that both the State property on DeviceState and the State property on Address happen to have the same name is coincidence; we shouldn't optimize for it.

Similarly, in the same model I should not be able to do:

~Things?$filter=State eq 'Active'

And have it compare "Active' to values of both Address/State and DeviceState/State.

> Clarify that type-cast segments are NOT required for properties of derived types in system query options
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ODATA-476
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-476
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData URL Conventions 
>    Affects Versions: V4.0_CS01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>             Fix For: V4.0_CSD03
>
>
> We allow type-cast segments in expressions, but we don't specify whether they are required.
> As a property name is unique within an instance, the type-cast segment is not necessary for evaluating the expression.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


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