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?