mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix bug in tuple as array serialization in BSONEachRow format
This commit is contained in:
parent
6a653060ff
commit
facb978830
@ -463,7 +463,7 @@ void BSONEachRowRowOutputFormat::serializeField(const IColumn & column, const Da
|
||||
writeBSONSize(document_size, out);
|
||||
|
||||
for (size_t i = 0; i < nested_columns.size(); ++i)
|
||||
serializeField(*nested_columns[i], nested_types[i], row_num, toValidUTF8String(nested_names[i]));
|
||||
serializeField(*nested_columns[i], nested_types[i], row_num, have_explicit_names ? toValidUTF8String(nested_names[i]) : std::to_string(i));
|
||||
|
||||
writeChar(BSON_DOCUMENT_END, out);
|
||||
break;
|
||||
|
BIN
tests/queries/0_stateless/02591_bson_long_tuple.reference
Normal file
BIN
tests/queries/0_stateless/02591_bson_long_tuple.reference
Normal file
Binary file not shown.
2
tests/queries/0_stateless/02591_bson_long_tuple.sql
Normal file
2
tests/queries/0_stateless/02591_bson_long_tuple.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select tuple(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) as x format BSONEachRow;
|
||||
|
Loading…
Reference in New Issue
Block a user