You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hivemall.apache.org by "Takeshi Yamamuro (JIRA)" <ji...@apache.org> on 2017/03/16 15:25:41 UTC
[jira] [Commented] (HIVEMALL-76) [SPARK] each_top_k behavior on
Spark is wrong
[ https://issues.apache.org/jira/browse/HIVEMALL-76?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928265#comment-15928265 ]
Takeshi Yamamuro commented on HIVEMALL-76:
------------------------------------------
Resolved by https://github.com/apache/incubator-hivemall/pull/54
> [SPARK] each_top_k behavior on Spark is wrong
> ---------------------------------------------
>
> Key: HIVEMALL-76
> URL: https://issues.apache.org/jira/browse/HIVEMALL-76
> Project: Hivemall
> Issue Type: Bug
> Reporter: Makoto Yui
> Assignee: Takeshi Yamamuro
>
> I found that each_top_k behavior on Spark is little bit difference one from Hive for the ranking scheme in
> https://github.com/apache/incubator-hivemall/blob/master/core/src/main/java/hivemall/tools/EachTopKUDTF.java#L198
> Hive provides a dense_rank but Spark does not.
> https://github.com/apache/incubator-hivemall/blob/72d6a629f972abc2f38c63d20fe5c978618f8bf8/spark/spark-2.0/src/main/scala/org/apache/spark/sql/catalyst/expressions/EachTopK.scala#L101
> Better to return a same rank where compared score is same.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)