Bug 1318435

Summary: OData - Math function round doesn't accept decimal number as parameter
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Michal Sanitrak <msanitra>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact: Juraj DurĂ¡ni <jdurani>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aszczucz, blafond, jdurani, jolee, mbaluch, thauser, vhalbert
Target Milestone: ER2   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 11:42:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Sanitrak 2016-03-16 21:20:55 UTC
Reference service which supports OData V4:
ULR: http://services.odata.org/V4/Northwind/Northwind.svc/Employees/?$filter=EmployeeID%20eq%20round(4.2)
Result: Employee with ID 4

URL: http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView/?$filter=intkey%20eq%20round(4.2)
Actual result: {"error": {"code": null, "message": "TEIID30558 Error converting parameter number 1 with value \"4,2\" of class java.math.BigDecimal to expected type integer." }}
Expected result: Entity with intkey 4

Comment 1 JBoss JIRA Server 2016-03-18 19:22:39 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4087 to Coding In Progress

Comment 2 JBoss JIRA Server 2016-03-18 19:30:07 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4087 to Resolved

Comment 5 JBoss JIRA Server 2016-06-20 13:36:52 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4087 to Closed