mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
added IColumn::select
This commit is contained in:
parent
44807df50f
commit
61e14b8a83
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user