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::FixedString: [[fallthrough]];
case TypeIndex::String: case TypeIndex::String:
{ {
String str = object.as<String>(); msgpack::object_str obj_str = object.via.str;
column.insertData(str.data(), str.size()); column.insertData(obj_str.ptr, obj_str.size);
return; return;
} }
case TypeIndex::Array: case TypeIndex::Array: