Better, pt. II

This commit is contained in:
Robert Schulze 2023-05-30 11:46:23 +00:00
parent 2d06947522
commit 1cbce21968
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -1426,6 +1426,9 @@ public:
{
auto col_to = ColumnVector<ToType>::create(input_rows_count);
if (input_rows_count == 0)
return col_to;
typename ColumnVector<ToType>::Container & vec_to = col_to->getData();
/// If using a "keyed" algorithm, the first argument is the key and
@ -1441,7 +1444,7 @@ public:
KeyType key{};
if constexpr (Keyed)
if (!arguments.empty() && input_rows_count != 0)
if (!arguments.empty())
key = Impl::parseKey(arguments[0]);
/// The function supports arbitrary number of arguments of arbitrary types.