fix tidy build

This commit is contained in:
Yarik Briukhovetskyi 2024-03-08 12:28:14 +01:00 committed by GitHub
parent 66dea51112
commit e7cc49212a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -523,18 +523,18 @@ private:
const auto & offsets_y = array_y.getOffsets();
ColumnArray::Offset prev_offset = 0;
for (size_t row = 0; row < offsets_y.size(); ++row)
for (auto offset_y : offsets_y)
{
if (offsets_x[0] != offsets_y[row] - prev_offset) [[unlikely]]
if (offsets_x[0] != offset_y - prev_offset) [[unlikely]]
{
throw Exception(
ErrorCodes::SIZES_OF_ARRAYS_DONT_MATCH,
"Arguments of function {} have different array sizes: {} and {}",
getName(),
offsets_x[0],
offsets_y[row] - prev_offset);
offset_y - prev_offset);
}
prev_offset = offsets_y[row];
prev_offset = offset_y;
}
const typename Kernel::ConstParams kernel_params = initConstParams(arguments);