blob: 9dd3e23082aef2229db04690e0415a345e3e49ca [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 (ds='2008-04-08', nonexistingpart='12');