[
https://issues.apache.org/jira/browse/CALCITE-7136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francis Chuang resolved CALCITE-7136.
-------------------------------------
Resolution: Fixed
> Add Support for Druid Double Types
> ----------------------------------
>
> Key: CALCITE-7136
> URL: https://issues.apache.org/jira/browse/CALCITE-7136
> Project: Calcite
> Issue Type: Bug
> Components: avatica-go
> Affects Versions: avatica-go-5.4.0
> Environment: Imply version 2025.01.1 LTS
> Reporter: Sean
> Assignee: Sean
> Priority: Major
> Labels: pull-request-available
> Fix For: avatica-go-5.5.0
>
>
> The avatica golang SQL driver does not currently support druid records which
> contain a double type. Using the std golang sql package, `Scan` functionality
> will quietly fail and the zero value will be used.
> During the prepare phase of the sql request the correct types are returned.
> xxx_hidden_ColumnClassName ="java.lang.Double"
> xxx_hidden_Name ="DOUBLE"
> xxx_hidden_Rep =Rep_NUMBER (22)
> In
> [https://github.com/apache/calcite-avatica-go/blob/ebc770751cbaa070ee93a00eba3232bf433dc617/generic/generic.go#L94]
> the default case causes all double types to remain as the zero value of
> float64. Adding a condition on "DOUBLE" solves the problem
--
This message was sent by Atlassian Jira
(v8.20.10#820010)