incubator-hcatalog-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tra...@apache.org
Subject svn commit: r1366240 - in /incubator/hcatalog/trunk: CHANGES.txt hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatLoader.java hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatStorer.java
Date Fri, 27 Jul 2012 00:00:39 GMT
Author: travis
Date: Fri Jul 27 00:00:38 2012
New Revision: 1366240

URL: http://svn.apache.org/viewvc?rev=1366240&view=rev
Log:
HCATALOG-449 : HCatLoader is mistakenly identifying Configuration parameters to store

Modified:
    incubator/hcatalog/trunk/CHANGES.txt
    incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatLoader.java
    incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatStorer.java

Modified: incubator/hcatalog/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/CHANGES.txt?rev=1366240&r1=1366239&r2=1366240&view=diff
==============================================================================
--- incubator/hcatalog/trunk/CHANGES.txt (original)
+++ incubator/hcatalog/trunk/CHANGES.txt Fri Jul 27 00:00:38 2012
@@ -63,6 +63,8 @@ Trunk (unreleased changes)
   OPTIMIZATIONS
 
   BUG FIXES
+  HCAT-449 HCatLoader is mistakenly identifying Configuration parameters to store (cdrome
via traviscrawford)
+
   HCAT-456 storage-handlers tests failing due to missing commons-io (traviscrawford)
 
   HCAT-452 HCat_Drop_Table_3 does not get initialized properly (cdrome via toffer)  

Modified: incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatLoader.java
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatLoader.java?rev=1366240&r1=1366239&r2=1366240&view=diff
==============================================================================
--- incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatLoader.java
(original)
+++ incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatLoader.java
Fri Jul 27 00:00:38 2012
@@ -120,7 +120,7 @@ public class HCatLoader extends HCatBase
             // udf context, so the the HCatInputFormat.setInput method need not
             //be called many times.
             for (Entry<String,String> keyValue : job.getConfiguration()) {
-                String oldValue = clone.getConfiguration().get(keyValue.getKey());
+                String oldValue = clone.getConfiguration().getRaw(keyValue.getKey());
                 if ((oldValue == null) || (keyValue.getValue().equals(oldValue) == false))
{
                     udfProps.put(keyValue.getKey(), keyValue.getValue());
                 }

Modified: incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatStorer.java
URL: http://svn.apache.org/viewvc/incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatStorer.java?rev=1366240&r1=1366239&r2=1366240&view=diff
==============================================================================
--- incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatStorer.java
(original)
+++ incubator/hcatalog/trunk/hcatalog-pig-adapter/src/main/java/org/apache/hcatalog/pig/HCatStorer.java
Fri Jul 27 00:00:38 2012
@@ -136,7 +136,7 @@ public class HCatStorer extends HCatBase
       // udf context, so the the HCatOutputFormat.setOutput and setSchema
       // methods need not be called many times.
       for ( Entry<String,String> keyValue : job.getConfiguration()) {
-        String oldValue = clone.getConfiguration().get(keyValue.getKey());
+        String oldValue = clone.getConfiguration().getRaw(keyValue.getKey());
         if ((oldValue == null) || (keyValue.getValue().equals(oldValue) == false)) {
           udfProps.put(keyValue.getKey(), keyValue.getValue());
         }



Mime
View raw message