DOCSUP-5822: IN oper - supports diff types.

This commit is contained in:
romanzhukov 2021-02-08 15:51:33 +03:00
parent 8efee9ed9a
commit 5647f0eb8c
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@ Dont list too many values explicitly (i.e. millions). If a data set is large
The right side of the operator can be a set of constant expressions, a set of tuples with constant expressions (shown in the examples above), or the name of a database table or SELECT subquery in brackets.
ClickHouse allows different types inside `IN` subquery. For left hand side it applies type conversion to the type of right hand side.
ClickHouse allows different types inside `IN` subquery. For left hand side it applies type conversion to the type of right hand side with [accurateCastOrNull](../functions/type-conversion-functions.md#type_conversion_function-accurate-cast_or_null).
**Example**

View File

@ -17,6 +17,8 @@ SELECT (CounterID, UserID) IN ((34, 123), (101500, 456)) FROM ...
В качестве правой части оператора может быть множество константных выражений, множество кортежей с константными выражениями (показано в примерах выше), а также имя таблицы или подзапрос SELECT в скобках.
ClickHouse допускает различные типы внутри подзапроса `IN`. Для левой стороны он применяет преобразование к типу правой стороны с помощью [accurateCastOrNull](../functions/type-conversion-functions.md#type_conversion_function-accurate-cast_or_null).
**Пример**
Запрос: