Got source data like this. And all the keys are uncertain.
{k1: 0.5, k2: 0.6, k3: 0.3}
I want to concat(all_keys, ',') if value > 0.5 order by value desc. The correct result is 'k2,k1'
How should I do that in hive?
Got source data like this. And all the keys are uncertain.
{k1: 0.5, k2: 0.6, k3: 0.3}
I want to concat(all_keys, ',') if value > 0.5 order by value desc. The correct result is 'k2,k1'
How should I do that in hive?
Copyright © 2021 Jogjafile Inc.
Assuming your data is stored under table test1 as column data.