Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.