jack86596 opened a new pull request #4231:
URL: https://github.com/apache/carbondata/pull/4231


    ### Why is this PR needed?
   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
    
    ### What changes were proposed in this PR?
   Carbon should support store float datatype directly.
       
    ### Does this PR introduce any user interface change?
    - No
   
    ### Is any new testcase added?
    - Yes
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@carbondata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to