mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
16 lines
718 B
Plaintext
16 lines
718 B
Plaintext
-- { 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('median', [toLowCardinality(toNullable(8))]) as t, toTypeName(t);
|
|
8 Nullable(Float64)
|