mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 15:01:03 +00:00
160d8a6416
operator. The values that are not convertible to the left argument type can't match anyway, so it is safe to discard them.
14 lines
519 B
SQL
14 lines
519 B
SQL
-- When left and right element types are compatible, but the particular value
|
|
-- on the right is not in the range of the left type, it should be ignored.
|
|
select (toUInt8(1)) in (-1);
|
|
select (toUInt8(0)) in (-1);
|
|
select (toUInt8(255)) in (-1);
|
|
|
|
select [toUInt8(1)] in [-1];
|
|
select [toUInt8(0)] in [-1];
|
|
select [toUInt8(255)] in [-1];
|
|
|
|
-- When left and right element types are not compatible, we should get an error.
|
|
select (toUInt8(1)) in ('a'); -- { serverError 53 }
|
|
select [toUInt8(1)] in ['a']; -- { serverError 53 }
|