Update MsgPack input format.

This commit is contained in:
Avogar 2020-04-13 22:33:02 +03:00
parent 9860ffee51
commit e46322fcef

View File

@ -119,8 +119,8 @@ void MsgPackRowInputFormat::insertObject(IColumn & column, DataTypePtr data_type
case TypeIndex::FixedString: [[fallthrough]];
case TypeIndex::String:
{
String str = object.as<String>();
column.insertData(str.data(), str.size());
msgpack::object_str obj_str = object.via.str;
column.insertData(obj_str.ptr, obj_str.size);
return;
}
case TypeIndex::Array: