mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 10:10:50 +00:00
Merge pull request #32110 from bharatnc/ncb/h3-func-looping
make looping in H3 funcs uniform
This commit is contained in:
commit
2d359a5e79
@ -76,7 +76,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const double lon = col_lon->getFloat64(row);
|
||||
const double lat = col_lat->getFloat64(row);
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const int resolution = col_hindex->getUInt(row);
|
||||
if (resolution > MAX_H3_RES)
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 resolution = col_hindex->getUInt(row);
|
||||
if (resolution > MAX_H3_RES)
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 hindex = col_hindex->getUInt(row);
|
||||
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 hindex = col_hindex->getUInt(row);
|
||||
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 resolution = col_hindex->getUInt(row);
|
||||
if (resolution > MAX_H3_RES)
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 hindex_origin = col_hindex_origin->getUInt(row);
|
||||
const UInt64 hindex_dest = col_hindex_dest->getUInt(row);
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 hindex = col_hindex->getUInt(row);
|
||||
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
|
||||
std::vector<H3Index> hindex_vec;
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 parent_hindex = col_hindex->getUInt(row);
|
||||
const UInt8 child_resolution = col_resolution->getUInt(row);
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
auto & dst_data = dst->getData();
|
||||
dst_data.resize(input_rows_count);
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const UInt64 hindex = col_hindex->getUInt(row);
|
||||
const UInt8 resolution = col_resolution->getUInt(row);
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
|
||||
std::vector<H3Index> hindex_vec;
|
||||
|
||||
for (const auto row : collections::range(0, input_rows_count))
|
||||
for (size_t row = 0; row < input_rows_count; row++)
|
||||
{
|
||||
const H3Index origin_hindex = col_hindex->getUInt(row);
|
||||
const int k = col_k->getInt(row);
|
||||
|
Loading…
Reference in New Issue
Block a user