blob: 62be4fd70c52b5f02a16f7b8c7a804e46c08d071 [file] [log] [blame]
--! qt:dataset:srcpart
-- SORT_QUERY_RESULTS
show partitions srcpart;
create table if not exists nzhang_part_n0 like srcpart;
describe extended nzhang_part_n0;
set hive.merge.mapfiles=false;
set hive.merge.mapredfiles=false;
set hive.exec.compress.output=true;
set hive.exec.dynamic.partition=true;
insert overwrite table nzhang_part_n0 partition (ds="2010-03-03", hr) select key, value, hr from srcpart where ds is not null and hr is not null;
select * from nzhang_part_n0 where ds = '2010-03-03' and hr = '11';
select * from nzhang_part_n0 where ds = '2010-03-03' and hr = '12';