mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
251 lines
12 KiB
MySQL
251 lines
12 KiB
MySQL
|
DROP TABLE IF EXISTS test.min_if;
|
||
|
CREATE TABLE test.min_if (arr Array(UInt8), str String, int Int32) ENGINE = Memory;
|
||
|
INSERT INTO test.min_if SELECT emptyArrayUInt8() AS arr, '' AS str, toInt32(0) AS int FROM system.numbers LIMIT 100000;
|
||
|
INSERT INTO test.min_if SELECT [1] AS arr, '2' AS str, toInt32(3) AS int;
|
||
|
INSERT INTO test.min_if SELECT emptyArrayUInt8() AS arr, '' AS str, toInt32(0) AS int FROM system.numbers LIMIT 100000;
|
||
|
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
SELECT minIf(arr, notEmpty(arr)) FROM test.min_if;
|
||
|
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
SELECT minIf(str, notEmpty(str)) FROM test.min_if;
|
||
|
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
SELECT minIf(int, int != 0) FROM test.min_if;
|
||
|
|
||
|
DROP TABLE test.min_if;
|