Added test with LowCardinality(Nullable) to not-Nullable cast.

This commit is contained in:
Nikolai Kochetov 2019-07-23 13:04:26 +03:00
parent 1e35f87760
commit eef0e08fbd
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Hello
\N
Hello
Hello

View File

@ -0,0 +1,6 @@
SELECT CAST('Hello' AS LowCardinality(Nullable(String)));
SELECT CAST(Null AS LowCardinality(Nullable(String)));
SELECT CAST(CAST('Hello' AS LowCardinality(Nullable(String))) AS String);
SELECT CAST(CAST(Null AS LowCardinality(Nullable(String))) AS String); -- { serverError 349 }
SELECT CAST(CAST('Hello' AS Nullable(String)) AS String);
SELECT CAST(CAST(Null AS Nullable(String)) AS String); -- { serverError 349 }