ClickHouse/dbms/tests/queries/0_stateless/00528_const_of_nullable.sql
2017-12-09 19:17:37 +03:00

7 lines
493 B
SQL

SELECT toNullable(0) + 1 AS x, toTypeName(x), toColumnTypeName(x);
SELECT toNullable(materialize(0)) + 1 AS x, toTypeName(x), toColumnTypeName(x);
SELECT materialize(toNullable(0)) + 1 AS x, toTypeName(x), toColumnTypeName(x);
SELECT toNullable(0) + materialize(1) AS x, toTypeName(x), toColumnTypeName(x);
SELECT toNullable(materialize(0)) + materialize(1) AS x, toTypeName(x), toColumnTypeName(x);
SELECT materialize(toNullable(0)) + materialize(1) AS x, toTypeName(x), toColumnTypeName(x);