From 68cf5104e17d060229b32b738e1f07cf277b9478 Mon Sep 17 00:00:00 2001 From: achulkov2 Date: Thu, 30 Jan 2020 18:17:20 +0300 Subject: [PATCH] Fix types --- dbms/src/Dictionaries/PolygonDictionary.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbms/src/Dictionaries/PolygonDictionary.cpp b/dbms/src/Dictionaries/PolygonDictionary.cpp index ef2881f883f..d820b70f25a 100644 --- a/dbms/src/Dictionaries/PolygonDictionary.cpp +++ b/dbms/src/Dictionaries/PolygonDictionary.cpp @@ -709,9 +709,9 @@ void registerDictionaryPolygon(DictionaryFactory & factory) IPolygonDictionary::PointType point_type; const auto key_type = (*dict_struct.key)[0].type; const auto f64 = std::make_shared(); - const auto multi_polygon_array = DataTypeArray(DataTypeArray(DataTypeArray(DataTypeArray(f64)))); - const auto multi_polygon_tuple = DataTypeArray(DataTypeArray(DataTypeArray(std::make_shared(std::vector{f64, f64})))); - const auto simple_polygon_array = DataTypeArray(DataTypeArray(f64)); + const auto multi_polygon_array = DataTypeArray(std::make_shared(std::make_shared(std::make_shared(f64)))); + const auto multi_polygon_tuple = DataTypeArray(std::make_shared(std::make_shared(std::make_shared(std::vector{f64, f64})))); + const auto simple_polygon_array = DataTypeArray(std::make_shared(f64)); const auto simple_polygon_tuple = DataTypeArray(std::make_shared(std::vector{f64, f64})); if (key_type->equals(multi_polygon_array)) {