[teiid-issues] [JBoss JIRA] (TEIID-4859) OData throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException when primary key is bigdecimal

Steven Hawkins (JIRA) issues at jboss.org
Thu Apr 13 18:48:00 EDT 2017


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

Steven Hawkins resolved TEIID-4859.
-----------------------------------
    Resolution: Rejected


Based upon the snippet shown above an exception would occur as the value is too large - 38 precision with 38 scale will not allow any digits to the left of the decimal point.

TEIID-4269 does improve the OData4 handling with regards to scale.

> OData throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException when primary key is bigdecimal
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TEIID-4859
>                 URL: https://issues.jboss.org/browse/TEIID-4859
>             Project: Teiid
>          Issue Type: Bug
>          Components: OData
>         Environment: VDB accessed through OData4 where the primary key is of bigdecimal type.
>            Reporter: Marc Shirley
>            Assignee: Steven Hawkins
>
> Attempting to access the VDB through OData4 (http://server:8080/odata4/odataFacetError/odataFacetError/fauxdata) results in an error like:
> org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException: The value '1.1' does not match the facets' constraints.
> Accessing through odata 2 (http://server:8080/odata/odataFacetError/odataFacetError.fauxdata) works correctly.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list