mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #35755 from Avogar/fix-custom-to-string
Fix bug in conversion from custom types to string
This commit is contained in:
commit
4ec3c35e14
@ -887,7 +887,7 @@ struct ConvertImplGenericToString
|
||||
const IColumn & col_from = *col_with_type_and_name.column;
|
||||
|
||||
size_t size = col_from.size();
|
||||
auto col_to = result_type->createColumn();
|
||||
auto col_to = removeNullable(result_type)->createColumn();
|
||||
|
||||
{
|
||||
ColumnStringHelpers::WriteHelper write_helper(
|
||||
|
@ -0,0 +1,6 @@
|
||||
true
|
||||
\N
|
||||
0.0.0.0
|
||||
\N
|
||||
::ffff:127.0.0.1
|
||||
\N
|
@ -0,0 +1,6 @@
|
||||
select toString(toNullable(true));
|
||||
select toString(CAST(NULL, 'Nullable(Bool)'));
|
||||
select toString(toNullable(toIPv4('0.0.0.0')));
|
||||
select toString(CAST(NULL, 'Nullable(IPv4)'));
|
||||
select toString(toNullable(toIPv6('::ffff:127.0.0.1')));
|
||||
select toString(CAST(NULL, 'Nullable(IPv6)'));
|
Loading…
Reference in New Issue
Block a user