hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r1034044 - in /hive/trunk: CHANGES.txt metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
Date Thu, 11 Nov 2010 18:53:01 GMT
Author: pauly
Date: Thu Nov 11 18:53:00 2010
New Revision: 1034044

URL: http://svn.apache.org/viewvc?rev=1034044&view=rev
Log:
HIVE-1712. Migrating metadata from derby to mysql thrown NullPointerException (Jake Farrell
via pauly)

Modified:
    hive/trunk/CHANGES.txt
    hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java

Modified: hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hive/trunk/CHANGES.txt?rev=1034044&r1=1034043&r2=1034044&view=diff
==============================================================================
--- hive/trunk/CHANGES.txt (original)
+++ hive/trunk/CHANGES.txt Thu Nov 11 18:53:00 2010
@@ -109,6 +109,8 @@ Trunk -  Unreleased
 
   IMPROVEMENTS
 
+    HIVE-1712. Migrating metadata from derby to mysql thrown NullPointerException (Jake Farrell
via pauly)
+
     HIVE-1394. Do not update transient_lastDdlTime if the partition is modified by a housekeeping
     operation (Ning Zhang via namit)
 

Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java?rev=1034044&r1=1034043&r2=1034044&view=diff
==============================================================================
--- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java (original)
+++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java Thu
Nov 11 18:53:00 2010
@@ -504,7 +504,10 @@ public class MetaStoreUtils {
               .getBucketCols().get(0));
     }
     if (sd.getSerdeInfo() != null) {
-      schema.putAll(sd.getSerdeInfo().getParameters());
+      for (Map.Entry<String,String> param : sd.getSerdeInfo().getParameters().entrySet())
{
+        schema.put(param.getKey(), (param.getValue() != null) ? param.getValue() : "");
+      }
+
       if (sd.getSerdeInfo().getSerializationLib() != null) {
         schema.setProperty(
             org.apache.hadoop.hive.serde.Constants.SERIALIZATION_LIB, sd



Mime
View raw message