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

Carbon hive table supports float datatype

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jack86596 Yahui Liu

            Dates

              Created:
              Updated:

              Time Tracking

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

                Slack

                  Issue deployment