hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1500991 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java
Date Mon, 08 Jul 2013 22:22:24 GMT
Author: hashutosh
Date: Mon Jul  8 22:22:24 2013
New Revision: 1500991

URL: http://svn.apache.org/r1500991
Log:
HIVE-3810 : HiveHistory.log need to replace \r with space before writing Entry.value to historyfile
(Mark Grover via Ashutosh Chauhan)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java?rev=1500991&r1=1500990&r2=1500991&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java Mon Jul  8 22:22:24
2013
@@ -287,7 +287,7 @@ public class HiveHistory {
       String key = ent.getKey();
       String val = ent.getValue();
       if(val != null) {
-        val = val.replace('\n', ' ');
+        val = val.replace(System.getProperty("line.separator"), " ");
       }
       sb.append(key + "=\"" + val + "\"");
 



Mime
View raw message