Update array-functions.md

This commit is contained in:
Mikhail 2021-05-11 17:56:57 +03:00
parent 91a9ae22e1
commit 3792e97ef3

View File

@ -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
└─────┴──────────────────────────────────────────────────────────────────────────────────────────┘
```