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 2017/10/16 12:06:29 UTC
[3/4] incubator-hivemall git commit: Fixed typos
Fixed typos
Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/c58eaeaf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/c58eaeaf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/c58eaeaf
Branch: refs/heads/master
Commit: c58eaeaf8d5be966967c1db169031d8fa4ee30c8
Parents: 1680c42
Author: Makoto Yui <my...@apache.org>
Authored: Mon Oct 16 20:53:53 2017 +0900
Committer: Makoto Yui <my...@apache.org>
Committed: Mon Oct 16 21:05:00 2017 +0900
----------------------------------------------------------------------
.../src/main/scala/org/apache/spark/sql/hive/HivemallOps.scala | 4 ++--
.../test/scala/org/apache/spark/sql/hive/HivemallOpsSuite.scala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/c58eaeaf/spark/spark-2.2/src/main/scala/org/apache/spark/sql/hive/HivemallOps.scala
----------------------------------------------------------------------
diff --git a/spark/spark-2.2/src/main/scala/org/apache/spark/sql/hive/HivemallOps.scala b/spark/spark-2.2/src/main/scala/org/apache/spark/sql/hive/HivemallOps.scala
index 45f7b4d..90a21d7 100644
--- a/spark/spark-2.2/src/main/scala/org/apache/spark/sql/hive/HivemallOps.scala
+++ b/spark/spark-2.2/src/main/scala/org/apache/spark/sql/hive/HivemallOps.scala
@@ -1843,10 +1843,10 @@ object HivemallOps {
* @see [[hivemall.ftvec.trans.AddFieldIndicesUDF]]
* @group ftvec.trans
*/
- def add_field_indicies(features: Column): Column = withExpr {
+ def add_field_indices(features: Column): Column = withExpr {
planHiveGenericUDF(
"hivemall.ftvec.trans.AddFieldIndicesUDF",
- "add_field_indicies",
+ "add_field_indices",
features :: Nil
)
}
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/c58eaeaf/spark/spark-2.2/src/test/scala/org/apache/spark/sql/hive/HivemallOpsSuite.scala
----------------------------------------------------------------------
diff --git a/spark/spark-2.2/src/test/scala/org/apache/spark/sql/hive/HivemallOpsSuite.scala b/spark/spark-2.2/src/test/scala/org/apache/spark/sql/hive/HivemallOpsSuite.scala
index de2481c..5d0f075 100644
--- a/spark/spark-2.2/src/test/scala/org/apache/spark/sql/hive/HivemallOpsSuite.scala
+++ b/spark/spark-2.2/src/test/scala/org/apache/spark/sql/hive/HivemallOpsSuite.scala
@@ -345,7 +345,7 @@ class HivemallOpsWithFeatureSuite extends HivemallFeatureQueryTest {
Row(Seq("190:140405:1", "111:1058718:1"))
)
checkAnswer(
- DummyInputData.select(add_field_indicies(typedLit(Seq("0.5", "0.1")))),
+ DummyInputData.select(add_field_indices(typedLit(Seq("0.5", "0.1")))),
Row(Seq("1:0.5", "2:0.1"))
)