blob: f1df486f5ca2f2ae0a5e15d211dbaa1acbf6e3ee [file] [log] [blame]
--! qt:authorizer
dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/az_uri_alterpart_loc_perm;
dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/az_uri_alterpart_loc;
dfs -touchz ${system:test.tmp.dir}/az_uri_alterpart_loc/1.txt;
dfs -chmod 555 ${system:test.tmp.dir}/az_uri_alterpart_loc/1.txt;
create table tpart(i int, j int) partitioned by (k string);
alter table tpart add partition (k = 'abc') location '${system:test.tmp.dir}/az_uri_alterpart_loc_perm/';
alter table tpart partition (k = 'abc') set location '${system:test.tmp.dir}/az_uri_alterpart_loc/';
-- Attempt to set partition to location without permissions should fail