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

Alter temp store location and decimal data type incorrect result display correction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      Below problems need to be addressed through this jira.
      1. Temp store location path formation for compaction through sort step is incorrect. Temp store location key being formed is not proper.

      2. Data type change validations:
      a. New precision should always be greater than existing precision
      b. New scale value can be same as old scale value.

      3. Filter query bug on datatype changed for a decimal column. Steps to reproduce:
      create table alter_decimal_filter (n1 string, n2 int, n3 decimal(3,2)) stored by 'carbondata';
      insert into alter_decimal_filter select 'xx',1,1.22;
      insert into alter_decimal_filter select 'xx',1,1.23;
      alter table alter_decimal_filter change n3 n3 decimal(8,4);
      insert into alter_decimal_filter select 'dd',2,111.111;
      select * from alter_decimal_filter where n3 = 1.22;

      Attachments

        Issue Links

          Activity

            People

              manishgupta_88 Manish Gupta
              manishgupta_88 Manish Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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