Uploaded image for project: 'Hivemall'
  1. Hivemall
  2. HIVEMALL-223

Add `-kv_map` and `-vk_map` option to to_ordered_list UDAF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5.0
    • 0.5.2
    • None

    Description

      to_ordered_list UDAF to_ordered_list(value, key, '-k 100') or to_ordered_list(key, '-k 100') and returns List<key> using top-k values.

      Sometime users want to get Map<key, score> or Map<score, key> for it's return.

      So, this PR support `-kv_map` option that returns Map<K, V> and `-vk_map` option that returns Map<V,K> for the given to_ordered_list(value, key, '-k 100').

      Attachments

        Issue Links

          Activity

            People

              myui Makoto Yui
              myui Makoto Yui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: