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 61e122e8df7bb921bda0f255789346d7eb37d890 Author: Makoto Yui <[email protected]> AuthorDate: Mon Jun 10 15:32:01 2019 +0900 Updated DDLs using bin/update_ddls.sh --- resources/ddl/define-all-as-permanent.hive | 4 ++++ resources/ddl/define-all.spark | 3 +++ 2 files changed, 7 insertions(+) diff --git a/resources/ddl/define-all-as-permanent.hive b/resources/ddl/define-all-as-permanent.hive index 0c836f2..8ae1afe 100644 --- a/resources/ddl/define-all-as-permanent.hive +++ b/resources/ddl/define-all-as-permanent.hive @@ -515,6 +515,9 @@ CREATE FUNCTION map_get as 'hivemall.tools.map.MapGetUDF' USING JAR '${hivemall_ DROP FUNCTION IF EXISTS map_key_values; CREATE FUNCTION map_key_values as 'hivemall.tools.map.MapKeyValuesUDF' USING JAR '${hivemall_jar}'; +DROP FUNCTION IF EXISTS map_roulette; +CREATE FUNCTION map_roulette as 'hivemall.tools.map.MapRouletteUDF' USING JAR '${hivemall_jar}'; + --------------------- -- list functions -- --------------------- @@ -877,3 +880,4 @@ CREATE FUNCTION xgboost_predict AS 'hivemall.xgboost.tools.XGBoostPredictUDTF' U DROP FUNCTION xgboost_multiclass_predict; CREATE FUNCTION xgboost_multiclass_predict AS 'hivemall.xgboost.tools.XGBoostMulticlassPredictUDTF' USING JAR '${hivemall_jar}'; + diff --git a/resources/ddl/define-all.spark b/resources/ddl/define-all.spark index e3ff216..c142af0 100644 --- a/resources/ddl/define-all.spark +++ b/resources/ddl/define-all.spark @@ -506,6 +506,9 @@ sqlContext.sql("CREATE TEMPORARY FUNCTION map_get AS 'hivemall.tools.map.MapGetU sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS map_key_values") sqlContext.sql("CREATE TEMPORARY FUNCTION map_key_values AS 'hivemall.tools.map.MapKeyValuesUDF'") +sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS map_roulette") +sqlContext.sql("CREATE TEMPORARY FUNCTION map_roulette AS 'hivemall.tools.map.MapRouletteUDF'") + /** * List functions */
