Makoto Yui created HIVEMALL-223:
-----------------------------------
Summary: Add `-flip_kv` option to to_order_map UDAF
Key: HIVEMALL-223
URL: https://issues.apache.org/jira/browse/HIVEMALL-223
Project: Hivemall
Issue Type: Improvement
Affects Versions: 0.5.0
Reporter: Makoto Yui
Assignee: Makoto Yui
Fix For: 0.5.2
to_order_map UDAF takes to_order_map(key, value, '-k 100') and returns Map<key,
value> using top-k keys.
Sometime users want to get Map<key, score> instead of Map<score, key> for
to_ordered_map(score, key).
So, add '-flip_kv' option as follows:
to_ordered_map(score, key, '-k 100 -flip_kv') to return Map<key, score> using
top-100 scores.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)