diff --git a/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp b/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp index 10c042350d3..ccb72edb277 100644 --- a/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp +++ b/dbms/src/Dictionaries/PolygonDictionaryUtils.cpp @@ -176,7 +176,7 @@ void BucketsPolygonIndex::indexBuild(const std::vector & polygons) /** using custom comparator for fetching edges in right_point order, like in scanline */ auto cmp = [](const Edge & a, const Edge & b) { - return Edge::compare1(a, b); + return Edge::compare2(a, b); }; std::set interesting_edges(cmp);