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 2016/12/06 11:59:07 UTC
incubator-hivemall git commit: Close #16: Make sha1 UDF deprecated
Repository: incubator-hivemall
Updated Branches:
refs/heads/master 060bfa990 -> 0774727f0
Close #16: Make sha1 UDF deprecated
Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/0774727f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/0774727f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/0774727f
Branch: refs/heads/master
Commit: 0774727f064a7e8b1d5e75bb8122057baae95f23
Parents: 060bfa9
Author: myui <yu...@gmail.com>
Authored: Tue Dec 6 20:58:09 2016 +0900
Committer: myui <yu...@gmail.com>
Committed: Tue Dec 6 20:58:09 2016 +0900
----------------------------------------------------------------------
resources/ddl/define-all-as-permanent.deprecated.hive | 3 +++
resources/ddl/define-all-as-permanent.hive | 3 ---
resources/ddl/define-all.deprecated.hive | 5 ++++-
resources/ddl/define-all.hive | 3 ---
resources/ddl/define-all.spark | 4 ++--
5 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/0774727f/resources/ddl/define-all-as-permanent.deprecated.hive
----------------------------------------------------------------------
diff --git a/resources/ddl/define-all-as-permanent.deprecated.hive b/resources/ddl/define-all-as-permanent.deprecated.hive
index 5e23f8f..5558c4e 100644
--- a/resources/ddl/define-all-as-permanent.deprecated.hive
+++ b/resources/ddl/define-all-as-permanent.deprecated.hive
@@ -75,3 +75,6 @@ CREATE FUNCTION rescale_fv as 'hivemall.ftvec.scaling.RescaleUDF' USING JAR '${h
DROP FUNCTION IF EXISTS addBias;
CREATE FUNCTION addBias as 'hivemall.ftvec.AddBiasUDF' USING JAR '${hivemall_jar}';
+
+DROP FUNCTION IF EXISTS sha1;
+CREATE FUNCTION sha1 as 'hivemall.ftvec.hashing.Sha1UDF' USING JAR '${hivemall_jar}';
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/0774727f/resources/ddl/define-all-as-permanent.hive
----------------------------------------------------------------------
diff --git a/resources/ddl/define-all-as-permanent.hive b/resources/ddl/define-all-as-permanent.hive
index cf0952e..1906de1 100644
--- a/resources/ddl/define-all-as-permanent.hive
+++ b/resources/ddl/define-all-as-permanent.hive
@@ -167,9 +167,6 @@ CREATE FUNCTION argmin_kld as 'hivemall.ensemble.ArgminKLDistanceUDAF' USING JAR
DROP FUNCTION IF EXISTS mhash;
CREATE FUNCTION mhash as 'hivemall.ftvec.hashing.MurmurHash3UDF' USING JAR '${hivemall_jar}';
-DROP FUNCTION IF EXISTS sha1;
-CREATE FUNCTION sha1 as 'hivemall.ftvec.hashing.Sha1UDF' USING JAR '${hivemall_jar}';
-
DROP FUNCTION IF EXISTS array_hash_values;
CREATE FUNCTION array_hash_values as 'hivemall.ftvec.hashing.ArrayHashValuesUDF' USING JAR '${hivemall_jar}';
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/0774727f/resources/ddl/define-all.deprecated.hive
----------------------------------------------------------------------
diff --git a/resources/ddl/define-all.deprecated.hive b/resources/ddl/define-all.deprecated.hive
index d93c664..58e027f 100644
--- a/resources/ddl/define-all.deprecated.hive
+++ b/resources/ddl/define-all.deprecated.hive
@@ -77,4 +77,7 @@ drop temporary function rescale_fv;
create temporary function rescale_fv as 'hivemall.ftvec.scaling.RescaleUDF';
drop temporary function addBias;
-create temporary function addBias as 'hivemall.ftvec.AddBiasUDF';
\ No newline at end of file
+create temporary function addBias as 'hivemall.ftvec.AddBiasUDF';
+
+drop temporary function sha1;
+create temporary function sha1 as 'hivemall.ftvec.hashing.Sha1UDF';
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/0774727f/resources/ddl/define-all.hive
----------------------------------------------------------------------
diff --git a/resources/ddl/define-all.hive b/resources/ddl/define-all.hive
index 7b99eb4..f9d9be4 100644
--- a/resources/ddl/define-all.hive
+++ b/resources/ddl/define-all.hive
@@ -163,9 +163,6 @@ create temporary function argmin_kld as 'hivemall.ensemble.ArgminKLDistanceUDAF'
drop temporary function mhash;
create temporary function mhash as 'hivemall.ftvec.hashing.MurmurHash3UDF';
-drop temporary function sha1;
-create temporary function sha1 as 'hivemall.ftvec.hashing.Sha1UDF';
-
drop temporary function array_hash_values;
create temporary function array_hash_values as 'hivemall.ftvec.hashing.ArrayHashValuesUDF';
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/0774727f/resources/ddl/define-all.spark
----------------------------------------------------------------------
diff --git a/resources/ddl/define-all.spark b/resources/ddl/define-all.spark
index 4aed65b..5de6106 100644
--- a/resources/ddl/define-all.spark
+++ b/resources/ddl/define-all.spark
@@ -151,8 +151,8 @@ sqlContext.sql("CREATE TEMPORARY FUNCTION argmin_kld AS 'hivemall.ensemble.Argmi
sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS mhash")
sqlContext.sql("CREATE TEMPORARY FUNCTION mhash AS 'hivemall.ftvec.hashing.MurmurHash3UDF'")
-sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS sha1")
-sqlContext.sql("CREATE TEMPORARY FUNCTION sha1 AS 'hivemall.ftvec.hashing.Sha1UDF'")
+// sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS sha1")
+// sqlContext.sql("CREATE TEMPORARY FUNCTION sha1 AS 'hivemall.ftvec.hashing.Sha1UDF'")
sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS array_hash_values")
sqlContext.sql("CREATE TEMPORARY FUNCTION array_hash_values AS 'hivemall.ftvec.hashing.ArrayHashValuesUDF'")