FIXUP: Darwin compilation issue

This commit is contained in:
Joanna Hulboj 2023-01-21 11:35:17 +00:00
parent d378e453c1
commit b0ba8c02be

View File

@ -123,7 +123,7 @@ ColumnPtr FunctionArrayShuffleImpl<Traits>::executeImpl(const ColumnsWithTypeAnd
}();
pcg64_fast rng(seed);
size_t limit = [&]
size_t limit = [&]() -> size_t
{
if constexpr (Traits::has_limit)
{
@ -133,7 +133,7 @@ ColumnPtr FunctionArrayShuffleImpl<Traits>::executeImpl(const ColumnsWithTypeAnd
return val->getUInt(0);
}
}
return static_cast<size_t>(0);
return 0;
}();
return executeGeneric(*array, rng, limit);