mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Original formatting retained
This commit is contained in:
parent
0a64a75f19
commit
f2bebae0d5
@ -63,9 +63,9 @@ private:
|
|||||||
LeftType left_src_data[Impl::rows_per_iteration];
|
LeftType left_src_data[Impl::rows_per_iteration];
|
||||||
std::fill(std::begin(left_src_data), std::end(left_src_data), left_arg->template getValue<LeftType>());
|
std::fill(std::begin(left_src_data), std::end(left_src_data), left_arg->template getValue<LeftType>());
|
||||||
|
|
||||||
auto & dst_data = dst->getData();
|
|
||||||
const auto & right_src_data = right_arg_typed->getData();
|
const auto & right_src_data = right_arg_typed->getData();
|
||||||
const auto src_size = right_src_data.size();
|
const auto src_size = right_src_data.size();
|
||||||
|
auto & dst_data = dst->getData();
|
||||||
dst_data.resize(src_size);
|
dst_data.resize(src_size);
|
||||||
|
|
||||||
const auto rows_remaining = src_size % Impl::rows_per_iteration;
|
const auto rows_remaining = src_size % Impl::rows_per_iteration;
|
||||||
@ -98,8 +98,8 @@ private:
|
|||||||
|
|
||||||
const auto & left_src_data = left_arg->getData();
|
const auto & left_src_data = left_arg->getData();
|
||||||
const auto & right_src_data = right_arg_typed->getData();
|
const auto & right_src_data = right_arg_typed->getData();
|
||||||
auto & dst_data = dst->getData();
|
|
||||||
const auto src_size = left_src_data.size();
|
const auto src_size = left_src_data.size();
|
||||||
|
auto & dst_data = dst->getData();
|
||||||
dst_data.resize(src_size);
|
dst_data.resize(src_size);
|
||||||
|
|
||||||
const auto rows_remaining = src_size % Impl::rows_per_iteration;
|
const auto rows_remaining = src_size % Impl::rows_per_iteration;
|
||||||
@ -128,12 +128,11 @@ private:
|
|||||||
auto dst = ColumnVector<Float64>::create();
|
auto dst = ColumnVector<Float64>::create();
|
||||||
|
|
||||||
const auto & left_src_data = left_arg->getData();
|
const auto & left_src_data = left_arg->getData();
|
||||||
auto & dst_data = dst->getData();
|
|
||||||
const auto src_size = left_src_data.size();
|
|
||||||
dst_data.resize(src_size);
|
|
||||||
|
|
||||||
RightType right_src_data[Impl::rows_per_iteration];
|
RightType right_src_data[Impl::rows_per_iteration];
|
||||||
std::fill(std::begin(right_src_data), std::end(right_src_data), right_arg_typed->template getValue<RightType>());
|
std::fill(std::begin(right_src_data), std::end(right_src_data), right_arg_typed->template getValue<RightType>());
|
||||||
|
const auto src_size = left_src_data.size();
|
||||||
|
auto & dst_data = dst->getData();
|
||||||
|
dst_data.resize(src_size);
|
||||||
|
|
||||||
const auto rows_remaining = src_size % Impl::rows_per_iteration;
|
const auto rows_remaining = src_size % Impl::rows_per_iteration;
|
||||||
const auto rows_size = src_size - rows_remaining;
|
const auto rows_size = src_size - rows_remaining;
|
||||||
@ -186,12 +185,11 @@ private:
|
|||||||
using Types = std::decay_t<decltype(types)>;
|
using Types = std::decay_t<decltype(types)>;
|
||||||
using LeftType = typename Types::LeftType;
|
using LeftType = typename Types::LeftType;
|
||||||
using RightType = typename Types::RightType;
|
using RightType = typename Types::RightType;
|
||||||
|
using ColVecLeft = ColumnVector<LeftType>;
|
||||||
|
|
||||||
const IColumn * left_arg = col_ptr_left.get();
|
const IColumn * left_arg = col_ptr_left.get();
|
||||||
const IColumn * right_arg = col_ptr_right.get();
|
const IColumn * right_arg = col_ptr_right.get();
|
||||||
|
|
||||||
using ColVecLeft = ColumnVector<LeftType>;
|
|
||||||
|
|
||||||
if (const auto left_arg_typed = checkAndGetColumn<ColVecLeft>(left_arg))
|
if (const auto left_arg_typed = checkAndGetColumn<ColVecLeft>(left_arg))
|
||||||
{
|
{
|
||||||
if ((res = executeTyped<LeftType, RightType>(left_arg_typed, right_arg)))
|
if ((res = executeTyped<LeftType, RightType>(left_arg_typed, right_arg)))
|
||||||
|
Loading…
Reference in New Issue
Block a user