mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix tests
This commit is contained in:
parent
5267e6b0ce
commit
0e3861d65d
@ -1 +1 @@
|
||||
SELECT caseWithExpr(arrayReduce(NULL, []), []); -- { serverError BAD_ARGUMENTS }
|
||||
SELECT caseWithExpr(arrayReduce(NULL, []), []); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
||||
|
@ -0,0 +1,14 @@
|
||||
-- { echoOn }
|
||||
SELECT arrayReduce('sum', []::Array(UInt8)) as a, toTypeName(a);
|
||||
0 UInt64
|
||||
SELECT arrayReduce('sumOrNull', []::Array(UInt8)) as a, toTypeName(a);
|
||||
\N Nullable(UInt64)
|
||||
SELECT arrayReduce('sum', [NULL]::Array(Nullable(UInt8))) as a, toTypeName(a);
|
||||
\N Nullable(UInt64)
|
||||
SELECT arrayReduce('sum', [NULL, 10]::Array(Nullable(UInt8))) as a, toTypeName(a);
|
||||
10 Nullable(UInt64)
|
||||
SELECT arrayReduce('any_respect_nulls', [NULL, 10]::Array(Nullable(UInt8))) as a, toTypeName(a);
|
||||
\N Nullable(UInt8)
|
||||
SELECT arrayReduce('any_respect_nulls', [10, NULL]::Array(Nullable(UInt8))) as a, toTypeName(a);
|
||||
10 Nullable(UInt8)
|
||||
SELECT arrayReduce('any', toNullable(3)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
@ -11,4 +11,4 @@ SELECT arrayReduce('sum', [NULL, 10]::Array(Nullable(UInt8))) as a, toTypeName(a
|
||||
SELECT arrayReduce('any_respect_nulls', [NULL, 10]::Array(Nullable(UInt8))) as a, toTypeName(a);
|
||||
SELECT arrayReduce('any_respect_nulls', [10, NULL]::Array(Nullable(UInt8))) as a, toTypeName(a);
|
||||
|
||||
SELECT arrayReduce('any', toNullable(3));
|
||||
SELECT arrayReduce('any', toNullable(3)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
||||
|
Loading…
Reference in New Issue
Block a user