DT
Есть вопрос по двум, на первый взгляд, одинаковым операциям которые дают разный результат.
Для конструкций вида
if(1 != count(*), max(count_in) - min(count_in), max(count_in))стреляют ошибки:
> There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values
А конструкция
minus(max(count_in), if(1 >= count(*), 0, min(count_in)))работает
потому что кликхаус вычисляет обе ветки If