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