mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
DOCAPI-5436: Clarification of the 'empty' function description.
This commit is contained in:
parent
c4c891e8b7
commit
720d44837a
@ -47,6 +47,6 @@ WHERE a = 'b\0'
|
||||
|
||||
This behavior differs from MySQL behavior for the `CHAR` type (where strings are padded with spaces, and the spaces are removed for output).
|
||||
|
||||
Note that the length of the `FixedString` value is constant even if it is filled with null bytes. The `empty` and `notEmpty` functions do not work correctly with the `FixedString` data type.
|
||||
Note that the length of the `FixedString` value is constant even if it is filled with null bytes only. The [empty](../query_language/functions/string_functions.md#string_functions-empty) functions returns `1` if the `FixedString` value contains the null bytes only.
|
||||
|
||||
[Original article](https://clickhouse.yandex/docs/en/data_types/fixedstring/) <!--hide-->
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Functions for working with strings
|
||||
|
||||
## empty
|
||||
## empty {#string_functions-empty}
|
||||
|
||||
Returns 1 for an empty string or 0 for a non-empty string.
|
||||
The result type is UInt8.
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Функции для работы со строками
|
||||
|
||||
## empty
|
||||
## empty {#string_functions-empty}
|
||||
Возвращает 1 для пустой строки, и 0 для непустой строки.
|
||||
Тип результата - UInt8.
|
||||
Строка считается непустой, если содержит хотя бы один байт, пусть даже это пробел или нулевой байт.
|
||||
@ -68,4 +68,4 @@
|
||||
## tryBase64Decode(s)
|
||||
Функционал аналогичен base64Decode, но при невозможности декодирования возвращает пустую строку.
|
||||
|
||||
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/string_functions/) <!--hide-->
|
||||
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/string_functions/) <!--hide-->
|
||||
|
Loading…
Reference in New Issue
Block a user