10
100
100
1000
arg
u8
u16
u32
u64
i8
i16
i32
i64
f32
f64
op
plus
minus
multiply
divide
intDivOrZero
modulo
moduloOrZero
CREATE TABLE nums
(
u8 UInt8,
u16 UInt16,
u32 UInt32,
u64 UInt64,
i8 Int8,
i16 Int16,
i32 Int32,
i64 Int64,
f32 Float32,
f64 Float64
) ENGINE = Memory;
INSERT INTO nums
WITH cityHash64(number) AS x
SELECT
toUInt8(x),
toUInt16(x),
toUInt32(x),
toUInt64(x),
toInt8(x),
toInt16(x),
toInt32(x),
toInt64(x),
toFloat32(x),
toFloat64(x)
FROM numbers(100000000);
SELECT count() FROM nums WHERE NOT ignore({op}({arg}, {arg}))
DROP TABLE nums