added IColumn::select

This commit is contained in:
Nikolai Kochetov 2018-04-23 19:51:27 +03:00
parent 44807df50f
commit 61e14b8a83
2 changed files with 5 additions and 5 deletions

View File

@ -55,13 +55,13 @@ ColumnPtr selectIndexImpl(const Column & column, const ColumnPtr & indexes, size
throw Exception("Size of indexes is less than required.", ErrorCodes::SIZES_OF_COLUMNS_DOESNT_MATCH);
if (auto * data_uint8 = detail::getIndexesData<UInt8>(indexes))
return column.template selectImpl<UInt8>(*data_uint8, limit);
return column.template indexImpl<UInt8>(*data_uint8, limit);
else if (auto * data_uint16 = detail::getIndexesData<UInt16>(indexes))
return column.template selectImpl<UInt16>(*data_uint16, limit);
return column.template indexImpl<UInt16>(*data_uint16, limit);
else if (auto * data_uint32 = detail::getIndexesData<UInt32>(indexes))
return column.template selectImpl<UInt32>(*data_uint32, limit);
return column.template indexImpl<UInt32>(*data_uint32, limit);
else if (auto * data_uint64 = detail::getIndexesData<UInt64>(indexes))
return column.template selectImpl<UInt64>(*data_uint64, limit);
return column.template indexImpl<UInt64>(*data_uint64, limit);
else
throw Exception("Indexes column for IColumn::select must be ColumnUInt, got" + indexes->getName(),
ErrorCodes::LOGICAL_ERROR);

View File

@ -75,7 +75,7 @@ public:
throw Exception("Method deserializeAndInsertFromArena is not supported for ColumnUnique.", ErrorCodes::NOT_IMPLEMENTED);
}
ColumnPtr index(const ColumnPtr & indexes, size_t limit) const override
ColumnPtr index(const ColumnPtr &, size_t) const override
{
throw Exception("Method index is not supported for ColumnUnique.", ErrorCodes::NOT_IMPLEMENTED);
}