Added test [#CLICKHOUSE-3431].

This commit is contained in:
Alexey Milovidov 2017-12-09 16:31:16 +03:00 committed by alexey-milovidov
parent b00bb5c348
commit be70e6282e
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
1 Nullable(UInt16) Const(Nullable(UInt16))
1 Nullable(UInt16) Nullable(UInt16)
1 Nullable(UInt16) Nullable(UInt16)
1 Nullable(UInt16) Nullable(UInt16)
1 Nullable(UInt16) Nullable(UInt16)
1 Nullable(UInt16) Nullable(UInt16)

View File

@ -0,0 +1,6 @@
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);