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

Daniel Barclay (Drill) updated DRILL-2668:
------------------------------------------
    Description: 
Casting a numeric literal to FLOAT results in type DOUBLE rather than type 
FLOAT.

Currently (before DRILL-2613 fix), querying for "CAST (1.1 AS FLOAT)" and 
reading the value using ResultSet.getFloat(...) yields an error about not 
allowed to use getFloat(...) for a FLOAT8 vector.




  was:
Casting a numeric literal to FLOAT results in type DOUBLE rather than type 
FLOAT.

Currently (before DRILL-2613 fix), querying for "CAST (1.1 AS FLOAT)" and 
reading the value using ResultSet.getFloat(...) yields the error:  

  TDB






> CAST to FLOAT with numeric literal yields DOUBLE
> ------------------------------------------------
>
>                 Key: DRILL-2668
>                 URL: https://issues.apache.org/jira/browse/DRILL-2668
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Daniel Barclay (Drill)
>            Assignee: Daniel Barclay (Drill)
>
> Casting a numeric literal to FLOAT results in type DOUBLE rather than type 
> FLOAT.
> Currently (before DRILL-2613 fix), querying for "CAST (1.1 AS FLOAT)" and 
> reading the value using ResultSet.getFloat(...) yields an error about not 
> allowed to use getFloat(...) for a FLOAT8 vector.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to