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 2019/06/10 06:51:25 UTC

[incubator-hivemall] 10/10: Fixed comments

This is an automated email from the ASF dual-hosted git repository.

myui pushed a commit to branch HIVEMALL-253-2
in repository https://gitbox.apache.org/repos/asf/incubator-hivemall.git

commit 49f3b632a1712b275c74774ce3b8534b10705a30
Author: Makoto Yui <my...@apache.org>
AuthorDate: Mon Jun 10 15:51:03 2019 +0900

    Fixed comments
---
 core/src/main/java/hivemall/tools/map/MapRouletteUDF.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java b/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
index 2c78937..3a3f0f8 100644
--- a/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
+++ b/core/src/main/java/hivemall/tools/map/MapRouletteUDF.java
@@ -67,12 +67,11 @@ public final class MapRouletteUDF extends GenericUDF {
     public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException {
         if (arguments.length != 1) {
             throw new UDFArgumentLengthException(
-                "Expected one arguments for map_find_max_prob: " + arguments.length);
+                "Expected exactly one argument for map_roulette: " + arguments.length);
         }
         if (arguments[0].getCategory() != ObjectInspector.Category.MAP) {
             throw new UDFArgumentTypeException(0,
-                "Only map type arguments are accepted for the key but " + arguments[0].getTypeName()
-                        + " was passed as parameter 1.");
+                "Only map type argument is accepted but got " + arguments[0].getTypeName());
         }
         mapOI = HiveUtils.asMapOI(arguments[0]);
         ObjectInspector keyOI = mapOI.getMapKeyObjectInspector();