← Prev in month ← Prev in thread

[OASIS Issue Tracker] (ODATA-1128) Clarify function imports in $filter and $orderby

From
OASIS Issues Tracker <>
Date
2017-11-02T16:45:45+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-1128) Clarify function imports in $filter and $orderby
[ https://issues.oasis-open.org/browse/ODATA-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=67987#comment-67987 ] 

Michael Pizzo commented on ODATA-1128:
--------------------------------------

I think the text was introduced before we introduced $root, and was intended to differentiate between function imports (which are called from the root) and unbound functions (which can be invoked in a $filter or $orderby as a "global" function.)

i.e., syntactically, the function import has to be prefixed with the container.  A function import "binds" the function to the container.



> Clarify function imports in $filter and $orderby
> ------------------------------------------------
>
>                 Key: ODATA-1128
>                 URL: https://issues.oasis-open.org/browse/ODATA-1128
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: Protocol
>    Affects Versions: V4.01_CSD03
>         Environment: Proposed
>            Reporter: Ralf Handl
>             Fix For: V4.01_CS01
>
>
> Section 11.5.3.1 Invoking a Function - http://docs.oasis-open.org/odata/odata/v4.01/csprd03/part1-protocol/odata-v4.01-csprd03-part1-protocol.html#sec_Functions - states
>     Function imports MUST NOT be used inside either the $filter or $orderby system query options.
> This somewhat defeats the purpose of $root, because it might be helpful to 
> GET Stuff=$filter=ResponsibleUser eq $root/Me/Username
> where Me is a function import returning a complex value - function import instead of singleton because it is read-only.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
← Prev in month ← Prev in thread