ClickHouse/dbms/tests/queries/0_stateless/00503_cast_const_nullable.sql

4 lines
185 B
SQL

SELECT CAST(1 AS Nullable(UInt8)) AS id WHERE id = CAST(1 AS Nullable(UInt8));
SELECT CAST(1 AS Nullable(UInt8)) AS id WHERE id = 1;
SELECT NULL == CAST(toUInt8(0) AS Nullable(UInt8));