You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by na...@apache.org on 2011/07/16 08:45:47 UTC

svn commit: r1147366 - in /hive/trunk/ql/src: java/org/apache/hadoop/hive/ql/exec/DDLTask.java test/queries/clientpositive/archive.q test/results/clientpositive/archive.q.out

Author: namit
Date: Sat Jul 16 06:45:46 2011
New Revision: 1147366

URL: http://svn.apache.org/viewvc?rev=1147366&view=rev
Log:
HIVE-2287 Error during UNARCHIVE of a partition
(Marcin Kurczych via namit)


Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
    hive/trunk/ql/src/test/queries/clientpositive/archive.q
    hive/trunk/ql/src/test/results/clientpositive/archive.q.out

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java?rev=1147366&r1=1147365&r2=1147366&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java Sat Jul 16 06:45:46 2011
@@ -1363,7 +1363,7 @@ public class DDLTask extends Task<DDLWor
       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<String> args = new ArrayList<String>();
         args.add("-cp");

Modified: hive/trunk/ql/src/test/queries/clientpositive/archive.q
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/queries/clientpositive/archive.q?rev=1147366&r1=1147365&r2=1147366&view=diff
==============================================================================
--- hive/trunk/ql/src/test/queries/clientpositive/archive.q (original)
+++ hive/trunk/ql/src/test/queries/clientpositive/archive.q Sat Jul 16 06:45:46 2011
@@ -7,7 +7,7 @@ drop table tstsrcpart;
 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';

Modified: hive/trunk/ql/src/test/results/clientpositive/archive.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/archive.q.out?rev=1147366&r1=1147365&r2=1147366&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/archive.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/archive.q.out Sat Jul 16 06:45:46 2011
@@ -21,9 +21,9 @@ POSTHOOK: Input: default@src
 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), ]