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

Fix compaction failure after alter add complex column.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None

    Description

      [Steps] :-

      From spark beeline/SQL/Shell/Submit the following queries are executed

      drop table if exists alter_complex; create table alter_complex (a int, b string) stored as carbondata; insert into alter_complex select 1,'a'; insert into alter_complex select 1,'a'; insert into alter_complex select 1,'a'; insert into alter_complex select 1,'a'; insert into alter_complex select 1,'a'; select from alter_complex; ALTER TABLE alter_complex ADD COLUMNS(struct1 STRUCT<a:int, b:string>); insert into alter_complex select 3,'c',named_struct('s1',4,'s2','d'); insert into alter_complex select 3,'c',named_struct('s1',4,'s2','d'); insert into alter_complex select 3,'c',named_struct('s1',4,'s2','d'); insert into alter_complex select 3,'c',named_struct('s1',4,'s2','d'); insert into alter_complex select 3,'c',named_struct('s1',4,'s2','d'); select from alter_complex; alter table alter_complex compact 'minor'; OR alter table alter_complex compact 'major'; OR alter table alter_complex compact 'custom' where segment.id In (3,4,5,6);

      [Expected Result] :- Compaction should be success after alter add complex column.

      [Actual Issue] : - Compaction fails after alter add complex column.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Shreelekhya SHREELEKHYA GAMPA
            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 - 6.5h
                6.5h