SELECT sum(number) FROM numbers(100000000) SELECT sum(toUInt32(number)) FROM numbers(100000000) SELECT sum(toUInt16(number)) FROM numbers(100000000) SELECT sum(toUInt8(number)) FROM numbers(100000000) SELECT sum(toFloat32(number)) FROM numbers(100000000) SELECT sum(toFloat64(number)) FROM numbers(100000000) SELECT sumKahan(toFloat32(number)) FROM numbers(100000000) SELECT sumKahan(toFloat64(number)) FROM numbers(100000000) SELECT sum(toNullable(number)) FROM numbers(100000000) SELECT sum(toNullable(toUInt32(number))) FROM numbers(100000000) SELECT sum(toNullable(toUInt16(number))) FROM numbers(100000000) SELECT sum(toNullable(toUInt8(number))) FROM numbers(100000000) SELECT sum(toNullable(toFloat32(number))) FROM numbers(100000000) SELECT sum(toNullable(toFloat64(number))) FROM numbers(100000000) SELECT sumKahan(toNullable(toFloat32(number))) FROM numbers(100000000) SELECT sumKahan(toNullable(toFloat64(number))) FROM numbers(100000000) select sumIf(number::Decimal128(3), rand32() % 2 = 0) from numbers(100000000) select sumIf(number::Decimal256(3), rand32() % 2 = 0) from numbers(100000000) select sumIf(number::Int128, rand32() % 2 = 0) from numbers(100000000) select sumIf(number::UInt128, rand32() % 2 = 0) from numbers(100000000) select sumIf(number::Int256, rand32() % 2 = 0) from numbers(100000000) select sumIf(number::UInt256, rand32() % 2 = 0) from numbers(100000000) CREATE TABLE nullfloat32 (x Nullable(Float32)) ENGINE = Memory INSERT INTO nullfloat32 SELECT IF(rand() % 5 == 0, NULL::Nullable(Float32), toFloat32(number)) as x FROM numbers_mt(200000000) SETTINGS max_threads = 8 SELECT sum(x) FROM nullfloat32 SELECT sum(x::Nullable(Float64)) FROM nullfloat32 DROP TABLE IF EXISTS nullfloat32