Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.2.0
-
None
-
None
Description
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.