blob: c959a1235b0c96e92c275f3a695c88d2caf829ce [file] [log] [blame]
--! qt:authorizer
dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/hive-12875-import/temp;
dfs -rmr ${system:test.tmp.dir}/hive-12875-import;
dfs ${system:test.dfs.mkdir} ${system:test.tmp.dir}/hive-12875-import/;
-- check export on partition
create table auth_import_ptn(i int) partitioned by (j int);
alter table auth_import_ptn add partition (j=42);
export table auth_import_ptn partition (j=42) to 'pfile://${system:test.tmp.dir}/hive-12875-import';
alter table auth_import_ptn drop partition (j=42);
set user.name=user1;
import table auth_import_ptn partition (j=42) from 'pfile://${system:test.tmp.dir}/hive-12875-import';