Quantcast
Channel: User Graygood - Stack Overflow
Viewing all articles
Browse latest Browse all 32

Normalize column in ClickHouse

$
0
0

Is there a possibility a to normalize a column in Clickhouse?

I was trying to do it getting the column into array via groupArray and then using arrayMap with lambda function arrayMap(x -> (x-minArray(c)) / (maxArray(c)-minArray(c), c) to normalize the data in the array.

But it seem a little bit clunky, cause it should be a subquery that repeats the actual query and then JOIN this subquery to it.

So, is there a better solution to it?


Viewing all articles
Browse latest Browse all 32

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>