2021-08-07 11:31:53 +00:00
|
|
|
SET cast_keep_nullable = 0;
|
|
|
|
|
2019-07-23 10:04:26 +00:00
|
|
|
SELECT CAST('Hello' AS LowCardinality(Nullable(String)));
|
|
|
|
SELECT CAST(Null AS LowCardinality(Nullable(String)));
|
|
|
|
SELECT CAST(CAST('Hello' AS LowCardinality(Nullable(String))) AS String);
|
2024-05-30 12:27:25 +00:00
|
|
|
SELECT CAST(CAST(Null AS LowCardinality(Nullable(String))) AS String); -- { serverError CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN }
|
2019-07-23 10:04:26 +00:00
|
|
|
SELECT CAST(CAST('Hello' AS Nullable(String)) AS String);
|
2024-05-30 12:27:25 +00:00
|
|
|
SELECT CAST(CAST(Null AS Nullable(String)) AS String); -- { serverError CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN }
|