mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fix Distributed table engine with a constant sharding key.
This commit is contained in:
parent
f663f13a35
commit
86ac7b14d0
@ -1533,10 +1533,7 @@ ClusterPtr StorageDistributed::getOptimizedCluster(
|
||||
IColumn::Selector StorageDistributed::createSelector(const ClusterPtr cluster, const ColumnWithTypeAndName & result)
|
||||
{
|
||||
const auto & slot_to_shard = cluster->getSlotToShard();
|
||||
|
||||
const IColumn * column = result.column.get();
|
||||
if (const auto * col_const = typeid_cast<const ColumnConst *>(column))
|
||||
column = &col_const->getDataColumn();
|
||||
|
||||
// If result.type is DataTypeLowCardinality, do shard according to its dictionaryType
|
||||
#define CREATE_FOR_TYPE(TYPE) \
|
||||
|
Loading…
Reference in New Issue
Block a user