提交 2cd3bb5f 编写于 作者: N Nikolai Kochetov

Fix tests.

上级 ec59f65a
......@@ -323,17 +323,20 @@ size_t ColumnUnique<ColumnType>::uniqueDeserializeAndInsertFromArena(const char
}
}
/// Numbers, FixedString
if (size_of_value_if_fixed)
{
new_pos = pos + size_of_value_if_fixed;
return uniqueInsertData(pos, size_of_value_if_fixed);
}
/// String
const size_t string_size = *reinterpret_cast<const size_t *>(pos);
pos += sizeof(string_size);
new_pos = pos + string_size;
return uniqueInsertData(pos, string_size);
/// -1 because of terminating zero
return uniqueInsertData(pos, string_size - 1);
}
template <typename ColumnType>
......
......@@ -112,7 +112,7 @@ namespace
else
{
using ValueType = typename ColumnType::value_type;
ValueType value = *reinterpret_cast<const ValueType *>(state.index_column->getDataAt(key).data);
ValueType value = *reinterpret_cast<const ValueType *>(state.index_column->getDataAt(index).data);
return DefaultHash<ValueType>()(value);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册