From 240d5c5b58bf08793bbd13a1c597fe8d08cf5016 Mon Sep 17 00:00:00 2001 From: Andrey Mironov Date: Tue, 14 Jul 2015 18:05:40 +0300 Subject: [PATCH] dbms: range_hashed dictGet*: add a missing call to resizing constructor of ColumnVector. [#METR-17111] --- dbms/include/DB/Functions/FunctionsDictionaries.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/include/DB/Functions/FunctionsDictionaries.h b/dbms/include/DB/Functions/FunctionsDictionaries.h index 8f1ff677b75..d49a8ed8180 100644 --- a/dbms/include/DB/Functions/FunctionsDictionaries.h +++ b/dbms/include/DB/Functions/FunctionsDictionaries.h @@ -1224,7 +1224,7 @@ private: const auto & ids = id_col->getData(); const PODArray dates(size, date_col->getData()); - const auto out = new ColumnVector; + const auto out = new ColumnVector{size}; block.getByPosition(result).column = out; auto & data = out->getData();