tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jihoon...@apache.org
Subject [1/5] tajo git commit: TAJO-1481: Numeric conversion of Inet4 type should be considered as unsigned.
Date Mon, 27 Apr 2015 04:38:57 GMT
Repository: tajo
Updated Branches:
  refs/heads/index_support 14c0482af -> 9a5c760ce


TAJO-1481: Numeric conversion of Inet4 type should be considered as unsigned.

Closes #483

Signed-off-by: Jihoon Son <jihoonson@apache.org>


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

Branch: refs/heads/index_support
Commit: f072979fff681d57ece0ac64a867771bd64cd434
Parents: 044fd49
Author: navis.ryu <navis@apache.org>
Authored: Mon Apr 20 20:34:12 2015 +0900
Committer: Jihoon Son <jihoonson@apache.org>
Committed: Mon Apr 20 20:34:12 2015 +0900

----------------------------------------------------------------------
 CHANGES                                                         | 3 +++
 tajo-common/src/main/java/org/apache/tajo/datum/Inet4Datum.java | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/f072979f/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 19315cf..8569456 100644
--- a/CHANGES
+++ b/CHANGES
@@ -102,6 +102,9 @@ Release 0.11.0 - unreleased
 
   BUG FIXES
 
+    TAJO-1481: Numeric conversion of Inet4 type should be considered as unsigned.
+    (Contributed by navis, Committed by jihoon)
+
     TAJO-1522: NPE making stage history before task scheduler is initialized.
     (Contributed by navis, Committed by jinho)
 

http://git-wip-us.apache.org/repos/asf/tajo/blob/f072979f/tajo-common/src/main/java/org/apache/tajo/datum/Inet4Datum.java
----------------------------------------------------------------------
diff --git a/tajo-common/src/main/java/org/apache/tajo/datum/Inet4Datum.java b/tajo-common/src/main/java/org/apache/tajo/datum/Inet4Datum.java
index 1de81cd..ab1799b 100644
--- a/tajo-common/src/main/java/org/apache/tajo/datum/Inet4Datum.java
+++ b/tajo-common/src/main/java/org/apache/tajo/datum/Inet4Datum.java
@@ -19,6 +19,7 @@
 package org.apache.tajo.datum;
 
 import com.google.common.base.Preconditions;
+import com.google.common.primitives.UnsignedInteger;
 import com.google.gson.annotations.Expose;
 import org.apache.tajo.exception.InvalidOperationException;
 import org.apache.tajo.util.Bytes;
@@ -68,7 +69,7 @@ public class Inet4Datum extends Datum {
 
 	@Override
 	public long asInt8() {
-	  return this.address;
+	  return UnsignedInteger.asUnsigned(address).longValue();
 	}
 
 	@Override


Mime
View raw message