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

Yahui Liu updated CARBONDATA-4291:
----------------------------------
    Affects Version/s:     (was: 2.1.1)
                       2.2.0

> Carbon hive table supports float datatype
> -----------------------------------------
>
>                 Key: CARBONDATA-4291
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-4291
>             Project: CarbonData
>          Issue Type: New Feature
>          Components: sql
>    Affects Versions: 2.2.0
>            Reporter: Yahui Liu
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Currently when create carbon hive table, if data type is float, will convert 
> to double type. This means all float data will be stored as double.
> In CTAS secnario, if source table column is float type, the data in newly 
> created carbon table will be incorrect.
> Reproduce steps:
> CREATE TABLE p1(f float) stored as parquet;
> insert into table p1 select 12.36;
> create table carbon1 stored as carbondata as select * from p1;
> select * from carbon1;
> Result:
> 5.410467587E-315
> Carbon should support store float datatype directly.



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

Reply via email to