hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r777743 - in /hadoop/hive/trunk: CHANGES.txt ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
Date Fri, 22 May 2009 23:38:12 GMT
Author: zshao
Date: Fri May 22 23:38:11 2009
New Revision: 777743

URL: http://svn.apache.org/viewvc?rev=777743&view=rev
Log:
HIVE-507. Handle empty files properly. (Namit Jain via zshao)

Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=777743&r1=777742&r2=777743&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Fri May 22 23:38:11 2009
@@ -158,6 +158,8 @@
     HIVE-504. Fix script operator with empty input file.
     (Raghu Murthy via zshao)
 
+    HIVE-507. Handle empty files properly. (Namit Jain via zshao)
+
 Release 0.3.1 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java?rev=777743&r1=777742&r2=777743&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java (original)
+++ hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java Fri May 22
23:38:11 2009
@@ -633,7 +633,7 @@
       
       Class<? extends HiveOutputFormat> outFileFormat = (Class<? extends HiveOutputFormat>)Class.forName("org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat");
       
-      String newFile = "file:" + hiveScratchDir + File.separator + (++numEmptyPaths);
+      String newFile = hiveScratchDir + File.separator + (++numEmptyPaths);
       Path newPath = new Path(newFile);
       LOG.info("Changed input file to " + newPath.toString());
       
@@ -683,7 +683,7 @@
       for (String emptyFile : emptyPaths) {
         Class<? extends HiveOutputFormat> outFileFormat = work.getPathToPartitionInfo().get(emptyFile).getTableDesc().getOutputFileFormatClass();
         
-        String newFile = "file:" + hiveScratchDir + File.separator + (++numEmptyPaths);
+        String newFile = hiveScratchDir + File.separator + (++numEmptyPaths);
         Path newPath = new Path(newFile);
         LOG.info("Changed input file to " + newPath.toString());
         



Mime
View raw message