diff --git a/dbms/tests/queries/0_stateless/00434_tonullable.reference b/dbms/tests/queries/0_stateless/00434_tonullable.reference new file mode 100644 index 00000000000..292b9490d95 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00434_tonullable.reference @@ -0,0 +1 @@ +\N Hello 1 \N Hello 1 Null Nullable(String) Nullable(UInt8) Null Nullable(String) Nullable(UInt8) diff --git a/dbms/tests/queries/0_stateless/00434_tonullable.sql b/dbms/tests/queries/0_stateless/00434_tonullable.sql new file mode 100644 index 00000000000..b9420ff7704 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00434_tonullable.sql @@ -0,0 +1,13 @@ +SELECT + toNullable(NULL) AS a, + toNullable('Hello') AS b, + toNullable(toNullable(1)) AS c, + toNullable(materialize(NULL)) AS d, + toNullable(materialize('Hello')) AS e, + toNullable(toNullable(materialize(1))) AS f, + toTypeName(a), + toTypeName(b), + toTypeName(c), + toTypeName(d), + toTypeName(e), + toTypeName(f);