mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
Update docs/en/sql-reference/functions/array-functions.md
Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
This commit is contained in:
parent
f53ef136b1
commit
54664ed013
@ -18,7 +18,7 @@ empty([x])
|
|||||||
An array is considered empty if it contains all empty elements.
|
An array is considered empty if it contains all empty elements.
|
||||||
|
|
||||||
!!! note "Note"
|
!!! note "Note"
|
||||||
Can be optimized by enabling the [optimize_functions_to_subcolumns](../../operations/settings/settings.md#optimize-functions-to-subcolumns) setting. With `optimize_functions_to_subcolumns = 1` the function reads only [size0](../../sql-reference/data-types/array.md#array-size) subcolumn instead of reading and processing the whole array column. The query `SELECT empty(arr) FROM table;` transforms to `SELECT arr.size0 = 0 FROM TABLE;`.
|
Can be optimized by enabling the [optimize_functions_to_subcolumns](../../operations/settings/settings.md#optimize-functions-to-subcolumns) setting. With `optimize_functions_to_subcolumns = 1` the function reads only [size0](../../sql-reference/data-types/array.md#array-size) subcolumn instead of reading and processing the whole array. The query `SELECT empty(arr) FROM table;` transforms to `SELECT arr.size0 = 0 FROM table;`.
|
||||||
|
|
||||||
The function also works for [strings](string-functions.md#empty) or [UUID](uuid-functions.md#empty).
|
The function also works for [strings](string-functions.md#empty) or [UUID](uuid-functions.md#empty).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user