You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Alessandro Solimando (Jira)" <ji...@apache.org> on 2021/02/20 18:41:00 UTC

[jira] [Updated] (CALCITE-3163) Mapping of Float and Real in AbstractCursor#convertValue() does not adhere to JDBC specifications

     [ https://issues.apache.org/jira/browse/CALCITE-3163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessandro Solimando updated CALCITE-3163:
------------------------------------------
    Summary: Mapping of Float and Real in AbstractCursor#convertValue() does not adhere to JDBC specifications  (was: Mapping of Types in AbstractCursor#convertValue() does not adhere to JDBC specifications)

> Mapping of Float and Real in AbstractCursor#convertValue() does not adhere to JDBC specifications
> -------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-3163
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3163
>             Project: Calcite
>          Issue Type: Bug
>          Components: avatica
>    Affects Versions: avatica-1.15.0
>            Reporter: Ralph Gasser
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: avatica-1.18.0
>
>         Attachments: patch0001.diff
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> This is an issue I found while working on CALCITE-3162: According to my understanding, the method _AbstractCursor#convertValue()_, used for converting the component types of ARRAYs, does not adhere to what is specified in the [JDBC specification (Appendix B)|https://download.oracle.com/otn-pub/jcp/jdbc-4_1-mrel-spec/jdbc4.1-fr-spec.pdf?AuthParam=1561978725_eefb6fb1703d96f182674508c44126ea] regarding mapping of types:
>  * The JDBC types FLOAT (6) and DOUBLE (8) should actually both map to Java _double_ or _Double_ respectively. Currently, FLOAT (6) is converted to a _float_.
>  * The implementation is currently missing support for JDBC type REAL (7), which should convert to _float_ or _Float_ respectively
> This issue will cause an IllegalStateException to be thrown in clients using the Avatica Driver if they encounter REAL datatype in arrays.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)