You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemall.apache.org by my...@apache.org on 2018/11/06 14:12:57 UTC

incubator-hivemall git commit: Fixed a bug in ArrayFlattenUDFTest

Repository: incubator-hivemall
Updated Branches:
  refs/heads/master 880ee8a2a -> ca6baea91


Fixed a bug in ArrayFlattenUDFTest


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

Branch: refs/heads/master
Commit: ca6baea917e2e038b3ce6b3edc5fdd5ee3a8eb8a
Parents: 880ee8a
Author: Makoto Yui <my...@apache.org>
Authored: Tue Nov 6 23:12:47 2018 +0900
Committer: Makoto Yui <my...@apache.org>
Committed: Tue Nov 6 23:12:47 2018 +0900

----------------------------------------------------------------------
 core/src/test/java/hivemall/tools/array/ArrayFlattenUDFTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/ca6baea9/core/src/test/java/hivemall/tools/array/ArrayFlattenUDFTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/hivemall/tools/array/ArrayFlattenUDFTest.java b/core/src/test/java/hivemall/tools/array/ArrayFlattenUDFTest.java
index 11754aa..e3fb9fd 100644
--- a/core/src/test/java/hivemall/tools/array/ArrayFlattenUDFTest.java
+++ b/core/src/test/java/hivemall/tools/array/ArrayFlattenUDFTest.java
@@ -30,6 +30,7 @@ import org.apache.hadoop.hive.ql.udf.generic.GenericUDF.DeferredObject;
 import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector;
 import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorFactory;
 import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorFactory;
+import org.apache.hadoop.io.IntWritable;
 import org.junit.Assert;
 import org.junit.Test;
 
@@ -50,7 +51,7 @@ public class ArrayFlattenUDFTest {
 
         Assert.assertEquals(8, result.size());
         for (int i = 0; i < 8; i++) {
-            Assert.assertEquals(new Integer(i), result.get(i));
+            Assert.assertEquals(new IntWritable(i), result.get(i));
         }
 
         udf.close();