diff --git a/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp b/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp index c80354a01e8..66ce38b2b90 100644 --- a/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp +++ b/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp @@ -59,7 +59,7 @@ std::unique_ptr GridRoot::makeCell(Float64 current_min_x, Float64 current return !bg::intersects(current_box, polygons[id]); }), possible_ids.end()); if (possible_ids.size() <= kMinIntersections || depth++ == kMaxDepth) - return std::make_unique(possible_ids); + return std::make_unique(possible_ids, polygons, current_box); auto x_shift = (current_max_x - current_min_x) / kSplit; auto y_shift = (current_max_y - current_min_y) / kSplit; std::vector> children;