hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject hive git commit: HIVE-15929. Fix HiveDecimalWritable compatibility.
Date Thu, 16 Feb 2017 18:01:00 GMT
Repository: hive
Updated Branches:
  refs/heads/master c1381fc19 -> 74c50452c


HIVE-15929. Fix HiveDecimalWritable compatibility.

Fixes #149

Signed-off-by: Owen O'Malley <omalley@apache.org>


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

Branch: refs/heads/master
Commit: 74c50452c5c644a3898bce2738ee040e625caa01
Parents: c1381fc
Author: Owen O'Malley <omalley@apache.org>
Authored: Tue Feb 14 17:25:46 2017 -0800
Committer: Owen O'Malley <omalley@apache.org>
Committed: Thu Feb 16 10:00:37 2017 -0800

----------------------------------------------------------------------
 storage-api/pom.xml                                               | 2 +-
 .../org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java     | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/74c50452/storage-api/pom.xml
----------------------------------------------------------------------
diff --git a/storage-api/pom.xml b/storage-api/pom.xml
index f29a27b..aa1c9f3 100644
--- a/storage-api/pom.xml
+++ b/storage-api/pom.xml
@@ -25,7 +25,7 @@
 
   <groupId>org.apache.hive</groupId>
   <artifactId>hive-storage-api</artifactId>
-  <version>2.3.0-SNAPSHOT</version>
+  <version>2.2.1</version>
   <packaging>jar</packaging>
   <name>Hive Storage API</name>
 

http://git-wip-us.apache.org/repos/asf/hive/blob/74c50452/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 94d61b4..73b541f 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
@@ -950,7 +950,8 @@ public final class HiveDecimalWritable extends FastHiveDecimal
   @HiveDecimalWritableVersionV1
   public byte[] getInternalStorage() {
     if (!isSet()) {
-      throw new RuntimeException("no value set");
+      // don't break old callers that are trying to reuse storages
+      return new byte[0];
     }
 
     if (internalScratchLongs == null) {


Mime
View raw message