You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by om...@apache.org on 2017/02/16 18:10:10 UTC
hive git commit: HIVE-15929. Fix up the incorrect version of the
patch from the previous commit.
Repository: hive
Updated Branches:
refs/heads/master a9c429e63 -> e732aa27e
HIVE-15929. Fix up the incorrect version of the patch from the previous
commit.
Signed-off-by: Owen O'Malley <om...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/e732aa27
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/e732aa27
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/e732aa27
Branch: refs/heads/master
Commit: e732aa27efec014302af41fb77c0b1c5197c4b90
Parents: a9c429e
Author: Owen O'Malley <om...@apache.org>
Authored: Tue Feb 14 17:25:46 2017 -0800
Committer: Owen O'Malley <om...@apache.org>
Committed: Thu Feb 16 10:09:30 2017 -0800
----------------------------------------------------------------------
.../org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/e732aa27/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java
----------------------------------------------------------------------
diff --git a/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java b/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java
index 73b541f..ffbe31a 100644
--- a/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java
+++ b/storage-api/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java
@@ -947,11 +947,13 @@ public final class HiveDecimalWritable extends FastHiveDecimal
return fastHashCode();
}
+ private static final byte[] EMPTY_ARRAY = new byte[0];
+
@HiveDecimalWritableVersionV1
public byte[] getInternalStorage() {
if (!isSet()) {
// don't break old callers that are trying to reuse storages
- return new byte[0];
+ return EMPTY_ARRAY;
}
if (internalScratchLongs == null) {