This is an automated email from the ASF dual-hosted git repository.
ngangam pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 8b2b4f1 HIVE-21252: [Trivial] Use String.equals in LazyTimestamp
(BELUGA BEHR, reviewed by Naveen Gangam)
8b2b4f1 is described below
commit 8b2b4f14eb8ae488dfe3c3668e2a936d2c76d499
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 1630756..44edcc8 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
@@ -63,7 +63,7 @@ public class LazyTimestamp extends
LazyPrimitive<LazyTimestampObjectInspector, T
new String(bytes.getData(), start, length, StandardCharsets.US_ASCII);
Timestamp t = null;
- if (s.compareTo("NULL") == 0) {
+ if ("NULL".equals(s)) {
isNull = true;
logExceptionMessage(bytes, start, length, "TIMESTAMP");
} else {