Github user myui commented on the issue:
https://github.com/apache/incubator-hivemall/pull/47
@maropu 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](https://blog.jooq.org/2013/10/09/sql-trick-row_number-is-to-select-what-dense_rank-is-to-select-distinct/)
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
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---