From 0d57b9ded059d5ad5e4c259d8a4faabca6cf0bba Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 7 May 2020 11:58:06 +0300 Subject: [PATCH] Fix reading from field. --- src/Columns/ColumnUnique.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Columns/ColumnUnique.h b/src/Columns/ColumnUnique.h index c4e224469dc..da96e4a5ea2 100644 --- a/src/Columns/ColumnUnique.h +++ b/src/Columns/ColumnUnique.h @@ -263,7 +263,7 @@ size_t ColumnUnique::uniqueInsert(const Field & x) if (x.getType() == Field::Types::Null) return getNullValueIndex(); - if (size_of_value_if_fixed) + if (isNumeric()) return uniqueInsertData(&x.reinterpret(), size_of_value_if_fixed); auto & val = x.get();