From eba213f1761b0d163ea2b0bc22422ba1af6e5488 Mon Sep 17 00:00:00 2001 From: Andrey Chulkov Date: Mon, 23 Mar 2020 01:58:50 +0300 Subject: [PATCH] Fix buckets polygon index bug --- dbms/src/Dictionaries/PolygonDictionaryUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);