mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Update repeat.cpp
This commit is contained in:
parent
4465fdb8bf
commit
61b02598d7
@ -179,15 +179,17 @@ public:
|
||||
block.getByPosition(result).column = std::move(col_res);
|
||||
}
|
||||
else if (!castType(block.getByPosition(arguments[1]).type.get(), [&](const auto & type)
|
||||
{
|
||||
using DataType = std::decay_t<decltype(type)>;
|
||||
using T0 = typename DataType::FieldType;
|
||||
const ColumnVector<T0> * colnum = checkAndGetColumn<ColumnVector<T0>>(numcolumn.get());
|
||||
auto col_res = ColumnString::create();
|
||||
Impl::vectorNonConstInteger(copy_str, col_res->getChars(), col_res->getOffsets(), colnum->getData());
|
||||
block.getByPosition(result).column = std::move(col_res);
|
||||
return 0;
|
||||
}))
|
||||
{
|
||||
using DataType = std::decay_t<decltype(type)>;
|
||||
using T0 = typename DataType::FieldType;
|
||||
const ColumnVector<T0> * colnum = checkAndGetColumn<ColumnVector<T0>>(numcolumn.get());
|
||||
auto col_res = ColumnString::create();
|
||||
Impl::vectorNonConstInteger(copy_str, col_res->getChars(), col_res->getOffsets(), colnum->getData());
|
||||
block.getByPosition(result).column = std::move(col_res);
|
||||
return 0;
|
||||
}));
|
||||
}
|
||||
else
|
||||
throw Exception(
|
||||
"Illegal column " + block.getByPosition(arguments[1]).column->getName() + " of argument of function " + getName(),
|
||||
|
Loading…
Reference in New Issue
Block a user