You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Yahui Liu (Jira)" <ji...@apache.org> on 2021/09/26 03:46:00 UTC

[jira] [Created] (CARBONDATA-4291) Carbon hive table supports float datatype

Yahui Liu created CARBONDATA-4291:
-------------------------------------

             Summary: 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.1.1
            Reporter: Yahui Liu


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)