[teiid-issues] [JBoss JIRA] (TEIID-5279) OData4 translator incorrecly translates modulo function

Steven Hawkins (JIRA) issues at jboss.org
Mon Mar 12 14:55:00 EDT 2018


     [ https://issues.jboss.org/browse/TEIID-5279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins updated TEIID-5279:
----------------------------------
    Fix Version/s: 10.0.4
                   10.1.2


> OData4 translator incorrecly translates modulo function
> -------------------------------------------------------
>
>                 Key: TEIID-5279
>                 URL: https://issues.jboss.org/browse/TEIID-5279
>             Project: Teiid
>          Issue Type: Bug
>          Components: OData
>    Affects Versions: 8.12.11.6_4
>            Reporter: Jan Martiska
>            Assignee: Ramesh Reddy
>             Fix For: 10.0.4, 10.2, 10.1.2
>
>
> With an OData4 translator, the {{modulo}} function is translated incorrectly: 
> {{WHERE MOD(number, 11) = 3}} is translated to {{filter=mod(number,11) eq 3}} 
> but in OData spec, {{mod}} is an infix function, so the filter should be {{filter=number mod 11 eq 3}}
> See http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part2-url-conventions.html#_Toc444868689



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the teiid-issues mailing list