blob: 48c5ec61f9100e90c95968d3350e314cf242ed0d [file] [log] [blame]
--! qt:dataset:srcpart
set hive.archive.enabled = true;
-- Tests trying to archive a partition twice.
CREATE TABLE srcpart_archived LIKE srcpart;
INSERT OVERWRITE TABLE srcpart_archived PARTITION (ds='2008-04-08', hr='12')
SELECT key, value FROM srcpart WHERE ds='2008-04-08' AND hr='12';
ALTER TABLE srcpart_archived ARCHIVE PARTITION (hr='12', ds='2008-04-08');