hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jd...@apache.org
Subject svn commit: r1667086 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java
Date Mon, 16 Mar 2015 17:52:55 GMT
Author: jdere
Date: Mon Mar 16 17:52:55 2015
New Revision: 1667086

URL: http://svn.apache.org/r1667086
Log:
HIVE-9954: UDFJson uses the == operator to compare Strings (Alexander Pivavorov via Jason
Dere)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java?rev=1667086&r1=1667085&r2=1667086&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java Mon Mar 16 17:52:55
2015
@@ -123,8 +123,8 @@ public class UDFJson extends UDF {
    */
   public Text evaluate(String jsonString, String pathString) {
 
-    if (jsonString == null || jsonString == "" || pathString == null
-        || pathString == "") {
+    if (jsonString == null || jsonString.isEmpty() || pathString == null
+        || pathString.isEmpty()) {
       return null;
     }
 



Mime
View raw message