Add small log message

This commit is contained in:
Andrey Chulkov 2020-03-22 21:26:42 +03:00
parent ef7acf3190
commit b15f46a8ce

View File

@ -1,9 +1,12 @@
#include "PolygonDictionaryImplementations.h" #include "PolygonDictionaryImplementations.h"
#include "DictionaryFactory.h" #include "DictionaryFactory.h"
#include <DataTypes/DataTypeArray.h> #include <DataTypes/DataTypeArray.h>
#include <DataTypes/DataTypeTuple.h> #include <DataTypes/DataTypeTuple.h>
#include <DataTypes/DataTypesNumber.h> #include <DataTypes/DataTypesNumber.h>
#include <common/logger_useful.h>
#include <numeric> #include <numeric>
namespace DB namespace DB
@ -115,10 +118,12 @@ SmartPolygonDictionary::SmartPolygonDictionary(
PointType point_type_) PointType point_type_)
: IPolygonDictionary(database_, name_, dict_struct_, std::move(source_ptr_), dict_lifetime_, input_type_, point_type_) : IPolygonDictionary(database_, name_, dict_struct_, std::move(source_ptr_), dict_lifetime_, input_type_, point_type_)
{ {
auto log = &Logger::get("BucketsPolygonIndex");
buckets.reserve(polygons.size()); buckets.reserve(polygons.size());
for (size_t i = 0; i < polygons.size(); ++i) for (size_t i = 0; i < polygons.size(); ++i)
{ {
buckets.emplace_back(std::vector<Polygon>{polygons[i]}); buckets.emplace_back(std::vector<Polygon>{polygons[i]});
LOG_TRACE(log, "Finished polygon" << i);
} }
} }