This commit is contained in:
Alexey Milovidov 2023-11-11 03:59:16 +01:00
parent fcd45d47e4
commit 28bf977960

View File

@ -172,7 +172,11 @@ static inline std::optional<size_t> extractMaxSplits(
return std::nullopt;
if (const ColumnConst * column = checkAndGetColumn<ColumnConst>(arguments[max_substrings_argument_position].column.get()))
return column->getUInt(0);
{
size_t res = column->getUInt(0);
if (res)
return res;
}
return std::nullopt;
}