-
Notifications
You must be signed in to change notification settings - Fork 118
[HIVEMALL-65] Update define-all.spark and import-packages.spark #44
Conversation
@amaya382 Could you review this? |
@maropu Sure |
I'm not sure whether these functions should add to |
Aha, can you replace |
OK, |
yea, please. |
@maropu You can revise taskid generation scheme using You need to use Java Reflaction to avoid Spark imports. |
OK, all done |
@myui No, you can't access |
@maropu You can use Reflections if the values are stored in ThreadLocal. |
Aha, I see. I'll make a JIRA |
resources/ddl/define-all.spark
Outdated
sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS popcnt") | ||
sqlContext.sql("CREATE TEMPORARY FUNCTION popcnt AS 'hivemall.knn.distance.PopcountUDF'") | ||
|
||
sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS kld") | ||
sqlContext.sql("CREATE TEMPORARY FUNCTION kld AS 'hivemall.knn.distance.KLDivergenceUDF'") | ||
|
||
sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS homming_distance") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wangyum Typo. hamming_distance
is correct.
https://github.com/apache/incubator-hivemall/blob/master/resources/ddl/define-all.hive#L109
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed it.
okay |
LGTM |
@myui it seems some imports ( |
Change org.apache.spark.sql.hive.XGBoostOptions to hivemall.xgboost.XGBoostOptions.
@maropu Could you merge this PR? |
|
LGTM. I'll merged later |
@wangyum Merged. Thank you for your contribution! |
What changes were proposed in this pull request?
Make define-all.spark keep correspondence with define-all.hive.
What type of PR is it?
Bug Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/HIVEMALL-65
How was this patch tested?
manual tests