hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgyrtk...@apache.org
Subject hive git commit: HIVE-17314: LazySimpleSerializeWrite.writeString() contains if with an empty body (Oleg Danilov via Zoltan Haindrich)
Date Mon, 11 Sep 2017 09:47:40 GMT
Repository: hive
Updated Branches:
  refs/heads/master 92f9d8fb4 -> 335474210


HIVE-17314: LazySimpleSerializeWrite.writeString() contains if with an empty body (Oleg Danilov
via Zoltan Haindrich)

Signed-off-by: Zoltan Haindrich <kirk@rxd.hu>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/33547421
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/33547421
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/33547421

Branch: refs/heads/master
Commit: 33547421050b6227e51640e85a5152919dad0f23
Parents: 92f9d8f
Author: Oleg Danilov <oleg@olegd.com>
Authored: Mon Sep 11 11:44:37 2017 +0200
Committer: Zoltan Haindrich <kirk@rxd.hu>
Committed: Mon Sep 11 11:44:37 2017 +0200

----------------------------------------------------------------------
 .../hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/33547421/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
----------------------------------------------------------------------
diff --git a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
index ef77daf..3790d3c 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
@@ -224,15 +224,13 @@ public final class LazySimpleSerializeWrite implements SerializeWrite
{
 
   /*
    * STRING.
-   * 
+   *
    * Can be used to write CHAR and VARCHAR when the caller takes responsibility for
    * truncation/padding issues.
    */
   @Override
   public void writeString(byte[] v) throws IOException  {
     beginPrimitive();
-    if (v.equals(nullSequenceBytes)) {
-    }
     LazyUtils.writeEscaped(output, v, 0, v.length, isEscaped, escapeChar,
         needsEscape);
     finishPrimitive();


Mime
View raw message