Sean created CALCITE-7136: ----------------------------- Summary: [calcite-avatica-go] Add Support for Druid Double Types Key: CALCITE-7136 URL: https://issues.apache.org/jira/browse/CALCITE-7136 Project: Calcite Issue Type: Bug Environment: [https://github.com/apache/calcite-avatica-go] v5.4.1 Imply version 2025.01.1 LTS Reporter: Sean
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)