mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
46 lines
2.4 KiB
SQL
46 lines
2.4 KiB
SQL
SELECT arrayAUC([], []); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([1], [1]);
|
|
SELECT arrayAUC([1], []); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([], [1]); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([1, 2], [3]); -- { serverError BAD_ARGUMENTS }
|
|
SELECT arrayAUC([1], [2, 3]); -- { serverError BAD_ARGUMENTS }
|
|
SELECT arrayAUC([1, 1], [1, 1]);
|
|
SELECT arrayAUC([1, 1], [0, 0]);
|
|
SELECT arrayAUC([1, 1], [0, 1]);
|
|
SELECT arrayAUC([0, 1], [0, 1]);
|
|
SELECT arrayAUC([1, 0], [0, 1]);
|
|
SELECT arrayAUC([0, 0, 1], [0, 1, 1]);
|
|
SELECT arrayAUC([0, 1, 1], [0, 1, 1]);
|
|
SELECT arrayAUC([0, 1, 1], [0, 0, 1]);
|
|
SELECT arrayAUC([], [], true); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([1], [1], true);
|
|
SELECT arrayAUC([1], [], true); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([], [1], true); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([1, 2], [3], true); -- { serverError BAD_ARGUMENTS }
|
|
SELECT arrayAUC([1], [2, 3], true); -- { serverError BAD_ARGUMENTS }
|
|
SELECT arrayAUC([1, 1], [1, 1], true);
|
|
SELECT arrayAUC([1, 1], [0, 0], true);
|
|
SELECT arrayAUC([1, 1], [0, 1], true);
|
|
SELECT arrayAUC([0, 1], [0, 1], true);
|
|
SELECT arrayAUC([1, 0], [0, 1], true);
|
|
SELECT arrayAUC([0, 0, 1], [0, 1, 1], true);
|
|
SELECT arrayAUC([0, 1, 1], [0, 1, 1], true);
|
|
SELECT arrayAUC([0, 1, 1], [0, 0, 1], true);
|
|
SELECT arrayAUC([], [], false); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([1], [1], false);
|
|
SELECT arrayAUC([1], [], false); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([], [1], false); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([1, 2], [3], false); -- { serverError BAD_ARGUMENTS }
|
|
SELECT arrayAUC([1], [2, 3], false); -- { serverError BAD_ARGUMENTS }
|
|
SELECT arrayAUC([1, 1], [1, 1], false);
|
|
SELECT arrayAUC([1, 1], [0, 0], false);
|
|
SELECT arrayAUC([1, 1], [0, 1], false);
|
|
SELECT arrayAUC([0, 1], [0, 1], false);
|
|
SELECT arrayAUC([1, 0], [0, 1], false);
|
|
SELECT arrayAUC([0, 0, 1], [0, 1, 1], false);
|
|
SELECT arrayAUC([0, 1, 1], [0, 1, 1], false);
|
|
SELECT arrayAUC([0, 1, 1], [0, 0, 1], false);
|
|
SELECT arrayAUC([0, 1, 1], [0, 0, 1], false, true); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|
|
SELECT arrayAUC([0, 1, 1]); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }
|
|
SELECT arrayAUC([0, 1, 1], [0, 0, 1], 'false'); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT arrayAUC([0, 1, 1], [0, 0, 1], 4); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT } |