Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-4291

Carbon hive table supports float datatype

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jack86596 Yahui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h