ClickHouse/tests/queries/0_stateless/01017_in_unconvertible_complex_type.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

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 }