You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "SHREELEKHYA GAMPA (Jira)" <ji...@apache.org> on 2021/09/15 05:31:00 UTC

[jira] [Created] (CARBONDATA-4284) Load/insert after alter add column on partition table with complex column fails

SHREELEKHYA GAMPA created CARBONDATA-4284:
---------------------------------------------

             Summary: Load/insert after alter add column on partition table with complex column fails 
                 Key: CARBONDATA-4284
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-4284
             Project: CarbonData
          Issue Type: Bug
            Reporter: SHREELEKHYA GAMPA


Insert after alter add column on partition table with complex column fails with bufferUnderFlowException

[Steps] :-

drop table if exists strarmap1; create table strarmap1(id int,str struct<intval:int,tm:timestamp,map1:map<int,string>>,arr array<map<string,timestamp>>) PARTITIONED BY(name string) stored as carbondata tblproperties('local_dictionary_enable'='true','local_dictionary_include'='name,str,arr'); load data inpath 'hdfs://hacluster/chetan/strarmap1.csv' into table strarmap1 partition(name='name0') options('fileheader'='id,name,str,arr','COMPLEX_DELIMITER_LEVEL_3'='#','COMPLEX_DELIMITER_LEVEL_2'='$','COMPLEX_DELIMITER_LEVEL_1'='&','BAD_RECORDS_ACTION'='FORCE'); select * from strarmap1 limit 1; show partitions strarmap1; ALTER TABLE strarmap1 ADD COLUMNS(map1 Map<short,int>, map2 Map<long,double>, map3 Map<decimal(3,2),string>, map4 Map<char(5),varchar(50)>, map5 Map<boolean,date>,map6 Map<string,timestamp>,map7 map<string,array<string>>, map8 map<string,struct<d:int, s:struct<im:string>>>); load data inpath 'hdfs://hacluster/chetan/strarmap1.csv' into table strarmap1 partition(name='name0') options('fileheader'='id,name,str,arr,map1,map2,map3,map4,map5,map6,map7,map8','COMPLEX_DELIMITER_LEVEL_3'='#','COMPLEX_DELIMITER_LEVEL_2'='$','COMPLEX_DELIMITER_LEVEL_1'='&','BAD_RECORDS_ACTION'='FORCE');

[Expected Result] :- load after add map columns on partition table should be success

[Actual Issue]:- error on load after add map columns on partition table



--
This message was sent by Atlassian Jira
(v8.3.4#803005)