mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Update array-functions.md
This commit is contained in:
parent
91a9ae22e1
commit
3792e97ef3
@ -1583,13 +1583,13 @@ Result:
|
||||
Query:
|
||||
|
||||
``` sql
|
||||
SELECT arrayProduct([toDecimal64(1,8), toDecimal64(2,8), toDecimal64(3,8)]) as res, toTypeName(a);
|
||||
SELECT arrayProduct([toDecimal64(1,8), toDecimal64(2,8), toDecimal64(3,8)]) as res, toTypeName(res);
|
||||
```
|
||||
|
||||
Return value type is always [Float64](../../sql-reference/data-types/float.md). Result:
|
||||
|
||||
``` text
|
||||
┌─res───┬─toTypeName(a)─┐
|
||||
│ 6 │ Float64 │
|
||||
└───────┴───────────────┘
|
||||
┌─res─┬─toTypeName(arrayProduct(array(toDecimal64(1, 8), toDecimal64(2, 8), toDecimal64(3, 8))))─┐
|
||||
│ 6 │ Float64 │
|
||||
└─────┴──────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user