ClickHouse/tests/queries/0_stateless/02426_to_string_nullable_fixedstring.sql
2022-09-20 13:27:34 +08:00

3 lines
244 B
SQL

SELECT CAST('a', 'Nullable(FixedString(1))') as s, toTypeName(s), toString(s);
SELECT number, toTypeName(s), toString(s) FROM (SELECT number, if(number % 3 = 0, NULL, toFixedString(toString(number), 1)) AS s from numbers(10)) ORDER BY number;