This is an automated email from the ASF dual-hosted git repository.

ngangam pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/branch-3 by this push:
     new 7501564  HIVE-21252: [Trivial] Use String.equals in LazyTimestamp 
(BELUGA BEHR, reviewed by Naveen Gangam)
7501564 is described below

commit 7501564f0080596b74f83856c0334dabab4f6894
Author: Naveen Gangam <[email protected]>
AuthorDate: Thu Feb 14 11:57:37 2019 -0500

    HIVE-21252: [Trivial] Use String.equals in LazyTimestamp (BELUGA BEHR, 
reviewed by Naveen Gangam)
---
 serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyTimestamp.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyTimestamp.java 
b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyTimestamp.java
index 3473c56..ba5cb54 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyTimestamp.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyTimestamp.java
@@ -71,7 +71,7 @@ public class LazyTimestamp extends 
LazyPrimitive<LazyTimestampObjectInspector, T
     }
 
     Timestamp t = null;
-    if (s.compareTo("NULL") == 0) {
+    if ("NULL".equals(s)) {
       isNull = true;
       logExceptionMessage(bytes, start, length, "TIMESTAMP");
     } else {

Reply via email to