ClickHouse/tests/queries/0_stateless/00528_const_of_nullable.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

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);