diff --git a/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.reference b/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.reference new file mode 100644 index 00000000000..5c576f5dee6 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.reference @@ -0,0 +1,4 @@ +Hello +\N +Hello +Hello diff --git a/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.sql b/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.sql new file mode 100644 index 00000000000..e369a8c169e --- /dev/null +++ b/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.sql @@ -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 }