Fix reading from field.

This commit is contained in:
Nikolai Kochetov 2020-05-07 11:58:06 +03:00
parent ff8014fa39
commit 0d57b9ded0

View File

@ -263,7 +263,7 @@ size_t ColumnUnique<ColumnType>::uniqueInsert(const Field & x)
if (x.getType() == Field::Types::Null)
return getNullValueIndex();
if (size_of_value_if_fixed)
if (isNumeric())
return uniqueInsertData(&x.reinterpret<char>(), size_of_value_if_fixed);
auto & val = x.get<String>();