hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1667613 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/VectorizedRCFileRecordReader.java
Date Wed, 18 Mar 2015 20:42:50 GMT
Author: sershe
Date: Wed Mar 18 20:42:50 2015
New Revision: 1667613

URL: http://svn.apache.org/r1667613
Log:
HIVE-9951 : VectorizedRCFileRecordReader creates Exception but does not throw it (Alexander
Pivovarov, reviewed by Sergey Shelukhin)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/VectorizedRCFileRecordReader.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/VectorizedRCFileRecordReader.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/VectorizedRCFileRecordReader.java?rev=1667613&r1=1667612&r2=1667613&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/VectorizedRCFileRecordReader.java
(original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/VectorizedRCFileRecordReader.java
Wed Mar 18 20:42:50 2015
@@ -146,11 +146,11 @@ public class VectorizedRCFileRecordReade
 
   @Override
   public VectorizedRowBatch createValue() {
-    VectorizedRowBatch result = null;
+    VectorizedRowBatch result;
     try {
       result = rbCtx.createVectorizedRowBatch();
     } catch (HiveException e) {
-      new RuntimeException("Error creating a batch", e);
+      throw new RuntimeException("Error creating a batch", e);
     }
     return result;
   }
@@ -193,7 +193,7 @@ public class VectorizedRCFileRecordReade
         }
       }
     } catch (Exception e) {
-      new RuntimeException("Error while getting next row", e);
+      throw new RuntimeException("Error while getting next row", e);
     }
     value.size = i;
     return more;



Mime
View raw message