mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
9 lines
514 B
SQL
9 lines
514 B
SQL
SET cast_keep_nullable = 0;
|
|
|
|
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 CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN }
|
|
SELECT CAST(CAST('Hello' AS Nullable(String)) AS String);
|
|
SELECT CAST(CAST(Null AS Nullable(String)) AS String); -- { serverError CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN }
|