Fix build.

This commit is contained in:
Nikolai Kochetov 2020-09-16 15:05:24 +03:00
parent 5acf73d873
commit dcb52c1d1d
6 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ struct SliceDynamicOffsetBoundedSelectArraySource : public ArraySourceSelector<S
template <typename Source>
static void selectImpl(Source && source, const IColumn & offset_column, const IColumn & length_column, ColumnArray::MutablePtr & result)
{
using SourceType = typename std::remove_cv<Source>::type;
using SourceType = typename std::decay<Source>::type;
using Sink = typename SourceType::SinkType;
result = ColumnArray::create(source.createValuesColumn());
Sink sink(result->getData(), result->getOffsets(), source.getColumnSize());

View File

@ -11,7 +11,7 @@ struct SliceDynamicOffsetUnboundedSelectArraySource : public ArraySourceSelector
template <typename Source>
static void selectImpl(Source && source, const IColumn & offset_column, ColumnArray::MutablePtr & result)
{
using SourceType = typename std::remove_cv<Source>::type;
using SourceType = typename std::decay<Source>::type;
using Sink = typename SourceType::SinkType;
result = ColumnArray::create(source.createValuesColumn());
Sink sink(result->getData(), result->getOffsets(), source.getColumnSize());

View File

@ -12,7 +12,7 @@ struct SliceFromLeftConstantOffsetBoundedSelectArraySource
template <typename Source>
static void selectImpl(Source && source, size_t & offset, ssize_t & length, ColumnArray::MutablePtr & result)
{
using SourceType = typename std::remove_cv<Source>::type;
using SourceType = typename std::decay<Source>::type;
using Sink = typename SourceType::SinkType;
result = ColumnArray::create(source.createValuesColumn());
Sink sink(result->getData(), result->getOffsets(), source.getColumnSize());

View File

@ -12,7 +12,7 @@ struct SliceFromLeftConstantOffsetUnboundedSelectArraySource
template <typename Source>
static void selectImpl(Source && source, size_t & offset, ColumnArray::MutablePtr & result)
{
using SourceType = typename std::remove_cv<Source>::type;
using SourceType = typename std::decay<Source>::type;
using Sink = typename SourceType::SinkType;
result = ColumnArray::create(source.createValuesColumn());
Sink sink(result->getData(), result->getOffsets(), source.getColumnSize());

View File

@ -12,7 +12,7 @@ struct SliceFromRightConstantOffsetBoundedSelectArraySource
template <typename Source>
static void selectImpl(Source && source, size_t & offset, ssize_t & length, ColumnArray::MutablePtr & result)
{
using SourceType = typename std::remove_cv<Source>::type;
using SourceType = typename std::decay<Source>::type;
using Sink = typename SourceType::SinkType;
result = ColumnArray::create(source.createValuesColumn());
Sink sink(result->getData(), result->getOffsets(), source.getColumnSize());

View File

@ -12,7 +12,7 @@ struct SliceFromRightConstantOffsetUnboundedSelectArraySource
template <typename Source>
static void selectImpl(Source && source, size_t & offset, ColumnArray::MutablePtr & result)
{
using SourceType = typename std::remove_cv<Source>::type;
using SourceType = typename std::decay<Source>::type;
using Sink = typename SourceType::SinkType;
result = ColumnArray::create(source.createValuesColumn());
Sink sink(result->getData(), result->getOffsets(), source.getColumnSize());