Index: ql/src/test/results/clientpositive/archive.q.out =================================================================== --- ql/src/test/results/clientpositive/archive.q.out (revision 16413) +++ ql/src/test/results/clientpositive/archive.q.out (working copy) @@ -21,9 +21,9 @@ POSTHOOK: Output: default@tstsrc POSTHOOK: Lineage: tstsrc.key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: tstsrc.value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] -PREHOOK: query: create table tstsrcpart like srcpart +PREHOOK: query: create table tstsrcpart (key string, value string) partitioned by (ds string, hr string) clustered by (key) into 10 buckets PREHOOK: type: CREATETABLE -POSTHOOK: query: create table tstsrcpart like srcpart +POSTHOOK: query: create table tstsrcpart (key string, value string) partitioned by (ds string, hr string) clustered by (key) into 10 buckets POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@tstsrcpart POSTHOOK: Lineage: tstsrc.key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] Index: ql/src/test/queries/clientpositive/archive.q =================================================================== --- ql/src/test/queries/clientpositive/archive.q (revision 16413) +++ ql/src/test/queries/clientpositive/archive.q (working copy) @@ -7,7 +7,7 @@ create table tstsrc like src; insert overwrite table tstsrc select key, value from src; -create table tstsrcpart like srcpart; +create table tstsrcpart (key string, value string) partitioned by (ds string, hr string) clustered by (key) into 10 buckets; insert overwrite table tstsrcpart partition (ds='2008-04-08', hr='11') select key, value from srcpart where ds='2008-04-08' and hr='11'; Index: ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java (revision 16413) +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java (working copy) @@ -1363,7 +1363,7 @@ try { // Copy the files out of the archive into the temporary directory - String copySource = (new Path(sourceDir, "*")).toString(); + String copySource = sourceDir.toString(); String copyDest = tmpDir.toString(); List args = new ArrayList(); args.add("-cp");