blob: 9bac775a6b0af940c073fc2ab7f8dd3ceab0d392 [file] [log] [blame]
dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/alter_merge_location/ds20140804;
dfs -put ../../data/files/smbbucket_1.rc ${system:test.tmp.dir}/alter_merge_location/ds20140804;
dfs -put ../../data/files/smbbucket_2.rc ${system:test.tmp.dir}/alter_merge_location/ds20140804;
dfs -put ../../data/files/smbbucket_3.rc ${system:test.tmp.dir}/alter_merge_location/ds20140804;
dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/alter_merge_location/ds20140805;
dfs -put ../../data/files/smbbucket_1.rc ${system:test.tmp.dir}/alter_merge_location/ds20140805;
dfs -put ../../data/files/smbbucket_2.rc ${system:test.tmp.dir}/alter_merge_location/ds20140805;
dfs -put ../../data/files/smbbucket_3.rc ${system:test.tmp.dir}/alter_merge_location/ds20140805;
create table src_rc_merge_test_part (key int, value string) partitioned by (ds string) stored as rcfile;
set fs.hdfs.impl.disable.cache=false;
alter table src_rc_merge_test_part add partition (ds = '2014-08-04') location '${system:test.tmp.dir}/alter_merge_location/ds20140804';
alter table src_rc_merge_test_part partition (ds = '2014-08-04') concatenate;
select count(1) from src_rc_merge_test_part where ds='2014-08-04';
set fs.hdfs.impl.disable.cache=true;
alter table src_rc_merge_test_part add partition (ds = '2014-08-05') location '${system:test.tmp.dir}/alter_merge_location/ds20140805';
alter table src_rc_merge_test_part partition (ds = '2014-08-05') concatenate;
select count(1) from src_rc_merge_test_part where ds='2014-08-05';
drop table src_rc_merge_test_part;