2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: long, no-fasttest
|
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT 'uniqTheta';
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, (3*X*X - 7*X + 11) % 37 AS Y FROM system.numbers LIMIT 15) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, (3*X*X - 7*X + 11) % 37 AS Y FROM system.numbers LIMIT 3000) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, (3*X*X - 7*X + 11) % 37 AS Y FROM system.numbers LIMIT 1000000) GROUP BY Y;
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT 'uniqTheta round(float)';
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, round(1/(1 + (3*X*X - 7*X + 11) % 37), 3) AS Y FROM system.numbers LIMIT 15) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, round(1/(1 + (3*X*X - 7*X + 11) % 37), 3) AS Y FROM system.numbers LIMIT 3000) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, round(1/(1 + (3*X*X - 7*X + 11) % 37), 3) AS Y FROM system.numbers LIMIT 1000000) GROUP BY Y;
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT 'uniqTheta round(toFloat32())';
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, round(toFloat32(1/(1 + (3*X*X - 7*X + 11) % 37)), 3) AS Y FROM system.numbers LIMIT 15) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, round(toFloat32(1/(1 + (3*X*X - 7*X + 11) % 37)), 3) AS Y FROM system.numbers LIMIT 3000) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(X) FROM (SELECT number AS X, round(toFloat32(1/(1 + (3*X*X - 7*X + 11) % 37)), 3) AS Y FROM system.numbers LIMIT 1000000) GROUP BY Y;
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT 'uniqTheta IPv4NumToString';
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT Y, uniqTheta(Z) FROM (SELECT number AS X, IPv4NumToString(toUInt32(X)) AS Z, (3*X*X - 7*X + 11) % 37 AS Y FROM system.numbers LIMIT 15) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(Z) FROM (SELECT number AS X, IPv4NumToString(toUInt32(X)) AS Z, (3*X*X - 7*X + 11) % 37 AS Y FROM system.numbers LIMIT 3000) GROUP BY Y;
|
|
|
|
SELECT Y, uniqTheta(Z) FROM (SELECT number AS X, IPv4NumToString(toUInt32(X)) AS Z, (3*X*X - 7*X + 11) % 37 AS Y FROM system.numbers LIMIT 1000000) GROUP BY Y;
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT 'uniqTheta remote()';
|
2021-05-05 08:42:57 +00:00
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT uniqTheta(dummy) FROM remote('127.0.0.{2,3}', system.one);
|
2021-05-05 08:42:57 +00:00
|
|
|
|
|
|
|
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT 'uniqTheta precise';
|
2021-05-05 08:42:57 +00:00
|
|
|
SELECT uniqExact(number) FROM numbers(1e7);
|
|
|
|
SELECT uniqCombined(number) FROM numbers(1e7);
|
|
|
|
SELECT uniqCombined64(number) FROM numbers(1e7);
|
2021-05-11 14:36:26 +00:00
|
|
|
SELECT uniqTheta(number) FROM numbers(1e7);
|
2021-05-05 08:42:57 +00:00
|
|
|
|