You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Gregory Hart (Jira)" <ji...@apache.org> on 2021/11/17 23:57:00 UTC

[jira] [Updated] (CALCITE-4892) Conversion from String in cursor accessors

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

Gregory Hart updated CALCITE-4892:
----------------------------------
    Component/s: avatica
                     (was: core)

> Conversion from String in cursor accessors
> ------------------------------------------
>
>                 Key: CALCITE-4892
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4892
>             Project: Calcite
>          Issue Type: Improvement
>          Components: avatica
>            Reporter: Gregory Hart
>            Priority: Major
>
> Numeric accessors (such as LongAccessor) of the AbstractCursor class could automatically convert strings to the appropriate numeric type.
> Also, I looked to see if I could instead easily provide my own accessor implementations in Calcite, but the cursor implementation is hardcoded in CalciteResultSet and is not easy to override.
> An example where this would be useful is when using the JDBC adapter with PostgreSQL and Hibernate. Hibernate is expecting this conversion to happen in the driver and fails when Calcite throws an exception: cannot convert to long.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)