Syntax

    1. mysql> select topn_weighted(k5,k1,3) from baseall;
    2. | topn_weighted(`k5`, `k1`, 3) |
    3. +------------------------------+
    4. +------------------------------+
    5. 1 row in set (0.02 sec)
    6. mysql> select topn_weighted(k5,k1,3,100) from baseall;
    7. | topn_weighted(`k5`, `k1`, 3, 100) |
    8. +-----------------------------------+
    9. | [0, 243.325, 100.001] |