You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jd...@apache.org on 2014/10/24 02:05:10 UTC

svn commit: r1633980 - /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/SerDeUtils.java

Author: jdere
Date: Fri Oct 24 00:05:10 2014
New Revision: 1633980

URL: http://svn.apache.org/r1633980
Log:
HIVE-8560: SerDes that do not inherit AbstractSerDe do not get table properties during initialize() (Jason Dere, reviewed by Xuefu Zhang)

Modified:
    hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/SerDeUtils.java

Modified: hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/SerDeUtils.java
URL: http://svn.apache.org/viewvc/hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/SerDeUtils.java?rev=1633980&r1=1633979&r2=1633980&view=diff
==============================================================================
--- hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/SerDeUtils.java (original)
+++ hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/SerDeUtils.java Fri Oct 24 00:05:10 2014
@@ -497,7 +497,8 @@ public final class SerDeUtils {
    * @return the overlayed properties
    */
   public static Properties createOverlayedProperties(Properties tblProps, Properties partProps) {
-    Properties props = new Properties(tblProps);
+    Properties props = new Properties();
+    props.putAll(tblProps);
     if (partProps != null) {
       props.putAll(partProps);
     }