Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4859

OData throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException when primary key is bigdecimal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.12.11.6_4, 8.12.11.6_3
    • None
    • OData
    • None
    • Hide

      1) Deploy VDB:
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <vdb name="odataFacetError" version="1">
      <description>test vdb showing odata issue with bigdecimal</description>
      <model visible = "true" type = "VIRTUAL" name = "odataFacetError">
      <metadata type = "DDL"><![CDATA[
      CREATE VIEW fauxdata(
      intkey bigdecimal(38,38) PRIMARY KEY
      ) AS
      select convert(1.1,bigdecimal) as intkey;
      ]]>
      </metadata>
      </model>
      </vdb>

      2) Navigate to page http://server:8080/odata4/odataFacetError/odataFacetError/fauxdata

      Show
      1) Deploy VDB: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <vdb name="odataFacetError" version="1"> <description>test vdb showing odata issue with bigdecimal</description> <model visible = "true" type = "VIRTUAL" name = "odataFacetError"> <metadata type = "DDL"><![CDATA[ CREATE VIEW fauxdata( intkey bigdecimal(38,38) PRIMARY KEY ) AS select convert(1.1,bigdecimal) as intkey; ]]> </metadata> </model> </vdb> 2) Navigate to page http://server:8080/odata4/odataFacetError/odataFacetError/fauxdata

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-jolee Johnathon Lee
              rhn-support-mshirley Marc Shirley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: