Repository: incubator-hivemall
Updated Branches:
  refs/heads/master 3ceaeef82 -> e2666ec96 (forced update)


[HIVEMALL-162] Test cases of L1/L2 normalize UDF expect HiveException


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

Branch: refs/heads/master
Commit: e2666ec96e74f710dfe845a3c8e5c59262eca9c9
Parents: feb349a
Author: Takuya Kitazawa <[email protected]>
Authored: Tue Dec 19 10:22:06 2017 +0900
Committer: Takuya Kitazawa <[email protected]>
Committed: Tue Dec 19 10:22:43 2017 +0900

----------------------------------------------------------------------
 .../test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java  | 3 ++-
 .../test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/e2666ec9/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java
----------------------------------------------------------------------
diff --git 
a/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java 
b/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java
index 2cd8250..7d997f7 100644
--- a/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java
+++ b/core/src/test/java/hivemall/ftvec/scaling/L1NormalizationUDFTest.java
@@ -20,6 +20,7 @@ package hivemall.ftvec.scaling;
 
 import hivemall.utils.hadoop.WritableUtils;
 import hivemall.utils.math.MathUtils;
+import org.apache.hadoop.hive.ql.metadata.HiveException;
 import org.apache.hadoop.io.Text;
 import org.junit.Test;
 
@@ -31,7 +32,7 @@ import static org.junit.Assert.assertEquals;
 public class L1NormalizationUDFTest {
 
     @Test
-    public void test() {
+    public void test() throws HiveException {
         L1NormalizationUDF udf = new L1NormalizationUDF();
 
         assertEquals(null, udf.evaluate(null));

http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/e2666ec9/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java
----------------------------------------------------------------------
diff --git 
a/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java 
b/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java
index bd80577..30e2aba 100644
--- a/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java
+++ b/core/src/test/java/hivemall/ftvec/scaling/L2NormalizationUDFTest.java
@@ -25,13 +25,14 @@ import hivemall.utils.math.MathUtils;
 import java.util.Collections;
 import java.util.List;
 
+import org.apache.hadoop.hive.ql.metadata.HiveException;
 import org.apache.hadoop.io.Text;
 import org.junit.Test;
 
 public class L2NormalizationUDFTest {
 
     @Test
-    public void test() {
+    public void test() throws HiveException {
         L2NormalizationUDF udf = new L2NormalizationUDF();
 
         assertEquals(null, udf.evaluate(null));

Reply via email to