mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-27 20:20:49 +00:00
Fix buckets polygon index bug
This commit is contained in:
parent
a558efae5e
commit
eba213f176
@ -176,7 +176,7 @@ void BucketsPolygonIndex::indexBuild(const std::vector<Polygon> & polygons)
|
|||||||
/** using custom comparator for fetching edges in right_point order, like in scanline */
|
/** using custom comparator for fetching edges in right_point order, like in scanline */
|
||||||
auto cmp = [](const Edge & a, const Edge & b)
|
auto cmp = [](const Edge & a, const Edge & b)
|
||||||
{
|
{
|
||||||
return Edge::compare1(a, b);
|
return Edge::compare2(a, b);
|
||||||
};
|
};
|
||||||
std::set<Edge, decltype(cmp)> interesting_edges(cmp);
|
std::set<Edge, decltype(cmp)> interesting_edges(cmp);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user